BotLeaveCommand
Triggers when the bot is forced to leave the server for any reason.

Example 1: The event placed in the main file.

1
bot.BotLeaveCommand({
2
name: "$getServerVar[channel]",
3
code: `
4
$client[name] has left $guildName
5
`
6
})
7
bot.onBotLeave()
Copied!

Example 2: The event placed in the event handler (its own file)

bot.onBotLeave() - Goes in the main file to be able to call the event!
1
module.exports.BotLeaveCommand = ({
2
name: "$systemChannelID",
3
code: `
4
$client[name] has left $guildName
5
`
6
})
Copied!
Last modified 5mo ago
Copy link