Functionalities
Other
Powered By GitBook
$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.

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

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

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

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

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