Functionalities
Other
$roleID
Returns the ID of the given role name if found in the guild. If 2nd field is not used, the function will look for the role in the current guild.

FUNCTION USAGE:

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

Properties:

roleName - The name of the role. guildID - The ID of the guild where the role is located.
1
bot.Command({
2
name: "roleid",
3
code: `
4
$roleID[Admin]
5
Here's the Role ID of role 'Admin'
6
`
7
})
Copied!
The role name you supply is case sensitive. Be sure to spell the role name exactly as it's spelled in your server role list
Last modified 4mo ago
Copy link
Contents
Properties: