Functionalities
Other
$memberRoleCount
Returns the number a roles the defined user has in the defined guild or in the guild the command is executed in.

FUNCTION USAGE

  • $memberRoleCount[userID]
  • $memberRoleCount[userID;guildID]

Properties:

userID - The ID of the user. guildID - The ID of the guild containing the defined user.

Example 1: Returns the number of roles user has.
1
bot.Command({
2
name: "roles",
3
code: `
4
$memberRoleCount[$authorID]
5
`
6
})
Copied!
Example 2: Uses specific guild to retreive role count
1
bot.Command({
2
name: "roles",
3
code: `
4
$memberRoleCount[$guildID[DB-Script Official Server];$authorID]
5
`
6
})
Copied!
Last modified 4mo ago
Copy link
Contents
Properties: