Skip to content
MILO123PRO edited this page Jun 2, 2024 · 7 revisions

READY

READY event lets you execute code when the bot starts, here is an example:

block_17_5_2024-20_14_34

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.

block_6_2_2024-11 11 43 AM

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: block_17_5_2024-20_19_04

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. block_6_2_2024-11 06 06 AM

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.

Clone this wiki locally