Skip to content

$isRoleManaged

$isRoleManaged will check if a certain role is managed by Discord.

Usage

$isRoleManaged[roleID;guildID?]

Parameters

FieldTypeDescriptionRequired
roleIDnumberID of the role you want to check if it’s managed by Discord or not.true
guildID?numberID of the guild where the role exists.false

Example(s)

This will check if a role called Server Booster is managed by Discord and return either true or false:

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