Skip to content

$roleId

$roleId will return the ID of a role.

Usage

$roleId[roleResolver;guildID?]

Parameters

FieldTypeDescriptionRequired
roleResolverstringName of the role.true
guildID?stringID 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):

1
client.command({
2
name: "roleId",
3
code: `
4
$roleId[Owner;$guildID]
5
`
6
});