BanCommand
Triggers when a guild member is banned from the guild in any fashion. Great for ban logs!

Example 1: The event placed in the main file.

1
bot.BanCommand({
2
name: "$getServerVar[channel]",
3
code: `
4
$tag has been banned from $guildName!
5
`
6
})
7
bot.onBan()
Copied!

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

bot.onBan() - Goes in the main file to be able to call the event!
1
module.exports.BanCommand = ({
2
name: "$getServerVar[channel]",
3
code: `
4
$tag has been banned from $guildName!
5
6
`
7
})
Copied!
Last modified 3mo ago
Copy link