Functionalities
Other
$roleName
Returns the name of the role ID you supply from the defined guild. If 2nd field is not used, the function will look for the role in the current guild.

FUNCTION USAGE:

  • $roleName[roleID]
  • $roleName[roleID;guildID]

Properties:

roleID - The ID of the role. guildID - The ID of the guild where the role is located.
Example 1:
1
bot.Command({
2
name: "rolename",
3
code: `
4
Here's the ID of the name's role you provided!: $roleName[$message[]]
5
`})
Copied!
Example 2:
1
bot.Command({
2
name: "rolename",
3
code: `
4
Here's the ID of the role name you provided!: $roleName[put roleID here;put guildID here]
5
`})
Copied!
Last modified 4mo ago
Copy link
Contents
Properties: