-
Notifications
You must be signed in to change notification settings - Fork 0
Events
MILO123PRO edited this page Jun 2, 2024
·
7 revisions
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 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 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 event is intended for slash commands.
