Functionalities
Functions
Data
Other
$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.

bot.Command({
name: "test",
code: `
$usersWithNicknameCount[HAHA]
`
})

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

bot.Command({
name: "test",
code: `
$usersWithNicknameCount[]
`
})
Copy link