Discord#
Implements a bot backend for Discord.
Identities#
The Discord backend implements the following identities, which can be used to limit commands to certain users, guilds, channels, etc…
Type |
Description |
---|---|
|
A unique user ID (not a username) |
|
A unique channel ID (not a name) |
|
A unique guild ID (not a name) |
API#
- class clicky.backends.discord.DiscordBackend(app: Clicky, name: str, backend: BackendConfig)#
- async run()#
Take over the process and start the bot. This will be called only after forking the process, so you can do whatever you want here.