LeaveCommand
Triggers when a member leaves the guild.

Example 1: The event placed in the main file.

bot.LeaveCommand({
name: "$getServerVar[channel]",
code: `
$tag just left $guildName
`
})
bot.onLeave()

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

bot.onLeave() - Goes in the main file to be able to call the event!
module.exports.LeaveCommand = ({
name: "$systemChannelID",
code: `
$tag just left $guildName
`
})
Copy link
Outline