Functionalities
Functions
Data
Other
$usersWithNickname
Returns a list of users with the same nickname as the defined input.

FUNCTION USAGE

  • $userWithNickname[]
  • $usersWithNickname[nickname]
  • $usersWithNickname[nickname;guildID]

Properties:

[] - Leave the brackets empty to define the command author's nickname. nick - The nickname to match other users. guildID - The ID of the guild for the bot to check for nicknames.
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 nickname.

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

Example 2:Returns the list of all the users with the nickname of HAHA.

bot.Command({
name: "who-has-nick",
code: `
$usersWithNickname[HAHA]
`
})
Copy link