Bot
DiscordBot
Bases: Bot
Methods:
Name | Description |
---|---|
on_connect |
|
on_ready |
|
on_guild_available |
|
load_cogs |
|
status_task |
Setup the game status task of the bot. |
before_status_task |
Before starting the status changing task, we make sure the bot is ready |
setup_hook |
This will just be executed when the bot starts the first time. |
on_message |
The code in this event is executed every time someone sends a message, with or without the prefix |
on_command_completion |
The code in this event is executed every time a normal command has been successfully executed. |
on_command_error |
The code in this event is executed every time a normal valid command catches an error. |
Source code in src/bot.py
on_connect
on_ready
Source code in src/bot.py
on_guild_available
load_cogs
Source code in src/bot.py
status_task
Setup the game status task of the bot.
Source code in src/bot.py
before_status_task
setup_hook
This will just be executed when the bot starts the first time.
Source code in src/bot.py
on_message
The code in this event is executed every time someone sends a message, with or without the prefix
:param message: The message that was sent.
Source code in src/bot.py
on_command_completion
The code in this event is executed every time a normal command has been successfully executed.
:param context: The context of the command that has been executed.
Source code in src/bot.py
on_command_error
on_command_error(
context: Context,
error: CommandOnCooldown
| NotOwner
| MissingPermissions
| BotMissingPermissions
| MissingRequiredArgument,
) -> None
The code in this event is executed every time a normal valid command catches an error.
:param context: The context of the normal command that failed executing. :param error: The error that has been faced.