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

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

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

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