Functionalities
Other
$memberRoles
Returns the names of all the roles of a user in the guild. If the 2nd field is defined as `mention`, the function will return the group of roles as mentioned instead of the names.

FUNCTION USAGE

  • $memberRoles[userID]
  • $memberRoles[userID;guildID]
  • $memberRoles[userID;guildID;mention]
  • $memberRoles[userID;mention]

Properties:

userID - The ID of the user. guildID - The ID of the guild containing defined user. mention - Mentions the group of roles instead of the names.

Example 1: Returns the group of roles as names.
1
bot.Command({
2
name: "roles",
3
code: `
4
$memberRoles[$authorID]
5
`
6
})
Copied!
Example 2: Returns the group of roles as mentioned.
1
bot.Command({
2
name: "roles",
3
code: `
4
$memberRoles[$authorID;mention]
5
`
6
})
Copied!
Example
Usages
Responses
1
?roles @Speshul
Developer, Moderator, Member, etc....
2
?roles @speshul
@Developer, @Moderator, @Member, etc...
Last modified 5mo ago
Copy link
Contents
Properties: