onBotJoin
Command executes when the bot gets added to a new guild.
Event: onBotJoin
Type: botJoinCommand
Prerequisites
Add the onBotJoin
Event:
bot.addEvent([
"onMessage",
"onInteraction",
"onBotJoin" //This is what you need to add
])
Example
bot.commands.add({
type: "botJoinCommand",
code: `$channelSendMessage[773363417338609674;
$title[1;New Guild]
$color[1;RANDOM]
$description[1;Guild Name: $serverName[$guildID]
Guild ID: $guildID]]`
})

Last updated
Was this helpful?