Command executes when the bot gets removed/kicked from a guild.
Last updated 3 years ago
Event: onBotLeave Type: botLeaveCommand
onBotLeave
botLeaveCommand
Add the onBotLeave Event:
bot.addEvent([ "onMessage", "onInteraction", "onBotLeave" //This is what you need to add ])
bot.commands.add({ type: "botLeaveCommand", code: `$channelSendMessage[773363417338609674; $title[1;Removed from Guild] $color[1;RED] $description[1;Guild Name: $serverName[$guildID] Guild ID: $guildID]]` })