$roleId
$roleId will return the ID of a role.
Usage
$roleId[roleResolver;guildID?]Parameters
| Field | Type | Description | Required |
|---|---|---|---|
| roleResolver | string | Name of the role. | true |
| guildID? | string | ID of the guild where the role was created in. | false |
Example(s)
This will return the role ID of a role called Owner (this example won’t work if you don’t have that role):
1client.command({2 name: "roleId",3 code: `4 $roleId[Owner;$guildID]5 `6});