mojidev-py / discmoji

A discord API wrapper made for fun
MIT License
4 stars 1 forks source link

Failed markdown at discmoji.wiki/Bot.md, here's a fix : #10

Closed ghost closed 1 month ago

ghost commented 1 month ago
# Bot

### Attributes:

`token` - `type` **_int_**
 - Stores the token that the bot uses to connect to the Discord Gateway

`intents` - `type` **_BotIntents_**
  - Stores the result field of the BotIntents class.

`all_guilds` - `type` **_int_**
  - Stores the number of guilds your bot is in. Gets this from the discord api's lazy loading.

`info` - `type` **_AppInfo_**
  - Stores the application's info it gets through connecting to the API. Work in progress.

## So, how do I make one?

```py
client = Bot("some token", RandomIntentsObject)

@client.command(name="test")        # decorator that registers a command
async def test(ctx: Invoked):       # Invoked is our context class here
  await client.get_guild(1234567)   # example, but allows you to call something.
``\`

### Subject to changes.

wanted to PR it but not a collaborator

mojidev-py commented 1 month ago

k, going to put this in rn

XenonPy commented 1 month ago

@mojidev-py I think it makes sense to add @almostDemoPy as a collaborator... after all, they have contributed a lot