onReady
Command executes when the bot gets added to a new guild.
Event: onReady
Type: readyCommand
Prerequisites
Adding the onReady
Event:
bot.addEvent([
"onMessage",
"onInteraction",
"onReady" //This is what you need to add
])
Example
bot.commands.add({
type: "readyCommand",
code: `$channelSendMessage[773363417338609674;I'm ready! :rocket:]`
})

Last updated
Was this helpful?