Functionalities
Functions
Data
Other
$usersWithTagCount
Returns the amount of users with the defined discriminator.

FUNCTION USAGE

  • $usersWithTagCount[]
  • $usersWithTagCount[discrim]
  • $usersWithTagCount[discrim;guildID]

Properties:

[] - Leave brackets empty to match the command authors discriminator. discriminator - Supply a valid discriminator. guildID - The ID of the guild the function will search through.

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

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

Example 2: Returns the number of users with the discriminator.

bot.Command({
name: "test",
code: `
$usersWithTagCount[$findRole[$message[]]]
`
})

Example 3: Returns the number of users with the command author's discriminator.

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