Skip to content

$banCount

$banCount will return the amount of banned users of a specific guild.

Usage

$banCount[guildID?]

Parameters

FieldTypeDescriptionRequired
guildID?numberGuild ID of the guild you want to retrieve the amount of banned users from.false

Please note that your bot requires permissions to VIEW_AUDIT_LOG

Example(s)

This will return the amount of banned users in your guild:

1
client.command({
2
name: "banCount",
3
code: `
4
$banCount
5
`
6
});