You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MILO123PRO edited this page Jun 2, 2024
·
7 revisions
READY
READY event lets you execute code when the bot starts, here is an example:
This example will send to an specific Channel ID "Bot Started!" every time the bot starts!
MESSAGE_CREATE
MESSAGE_CREATE event lets you run code when a new message gets sent in any of the servers where the bot is in.
This example will log "New Message!" to the debugger every time someone sends a message in one of the servers where the bot is in.
GUILD_DELETE
GUILD_DELETE event lets you execute code when the bot leaves/gets kicked from a server, here is an example:
This example will log into the Debugger "Bot left/was removed from a guild." every time the event gets triggered.
INTERACTION_CREATE
INTERACTION_CREATE event is intended for slash commands.
I only added the events that i have tested and got working but probably there are more, you can check them all here. Don't put for example Ready, put READY.