v5.0.0
$role
This function returns the given role's specified property

Usage

This function has 2 fields
  1. 1.
    Role ID (Required)
  2. 2.
    Property (Required)
Raw Usage: $role[roleID;property]

Options

  • Role ID - The role the properties are base off of
  • Property - The property from the <role>

Available Properties

  • name - Role's name
  • mention - Role's mention
  • id - Role's ID
  • hex - Role's hex color
  • created - Role's date and time of creation
  • position - Role's position
  • rawposition - Role's raw position
  • guild - Role's guild's id of origin
  • guildname - Role's guild's name of origin
  • timestamp - How long ago the role was created
  • isdeleted - Whether or not the role has been deleted, Returns Boolean
  • ismentionable - Whether or not the role can be mentioned, Returns Boolean
  • iseditable - Whether or not the author of the command can edit the role, Returns Boolean
  • ismanaged - Whether or not Discord manages the role, Returns Boolean
  • ishoisted - Whether or not the role is hoisted, Returns Boolean
1
bot.command({
2
name: "role",
3
code: `
4
$role[773353340674900029;name]
5
`
6
})
7
​
8
//Or specified role
9
​
10
bot.command({
11
name: "role",
12
code: `
13
$role[$mentionedRoles[1];name]
14
`
15
})
Copied!
Last modified 1mo ago
Copy link
Edit on GitHub