Functionalities
Other
Powered By GitBook
$usersWithTag
Returns all the users with a specific discriminator. Returns `None` if no one has the defined discriminator.

FUNCTION USAGE

    $usersWithTag[]
    $usersWithTag[discrim]
    $usersWithTag[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.
Keep in mind the 2,000 char message sending limit for the bot.

Example 1: Returns the list of all the users with the command author's discriminator.

1
bot.Command({
2
name: "who-has-tag",
3
code: `
4
$usersWithTag[]
5
`
6
})
Copied!

Example 2:Returns the list of all the users with the discriminator of 0001.

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