$findRole
$findRole will search and return a given role of a certain guild.
Usage
$findRole[roleResolver;guildID?]Parameters
| Field | Type | Description | Required |
|---|---|---|---|
| roleResolver | string | Name of the role you want to find. | true |
| guildID? | number | Guild ID where the role is present in. | false |
Example(s)
This will return the role ID of the role Owner if it exists:
1client.command({2 name: "findRole",3 code: `4 $findRole[Owner;$guildID]5 `6});