Functionalities
Other
Powered By GitBook
$usersWithNicknameCount
Returns the amount of users with the defined nickname.

FUNCTION USAGE

    $usersWithNicknameCount[]
    $usersWithNicknameCount[nickname]
    $usersWithNicknameCount[nickname;guildID]

Properties:

[] - Leave brackets empty to match the nickname of the command author. nick - Supply a valid nickname. Leave the brackets blank to define the command author's nickname. guildID - Specific guild for the bot to check for nicknames.

Example 1: Returns the number of users with the nickname.

1
bot.Command({
2
name: "test",
3
code: `
4
$usersWithNicknameCount[HAHA]
5
`
6
})
Copied!

Example 2: Returns the number of users with the command author's nickname.

1
bot.Command({
2
name: "test",
3
code: `
4
$usersWithNicknameCount[]
5
`
6
})
Copied!
Last modified 3mo ago
Copy link
Contents
Properties: