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

bot.Command({
name: "who-has-tag",
code: `
$usersWithTag[]
`
})

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

bot.Command({
name: "who-has-tag",
code: `
$usersWithTag[0001]
`
})
Copy link