Skip to content

$findRole

$findRole will search and return a given role of a certain guild.

Usage

$findRole[roleResolver;guildID?]

Parameters

FieldTypeDescriptionRequired
roleResolverstringName of the role you want to find.true
guildID?numberGuild ID where the role is present in.false

Example(s)

This will return the role ID of the role Owner if it exists:

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