Skip to content

$roleExists

$roleExists will check if a certain role exists within a certain guild.

Usage

$roleExists[roleResolver;guildID?]

Parameters

FieldTypeDescriptionRequired
roleResolvernumberID of the role you want to check if it exists.true
guildID?numberID of the guild where the role exists.false

Example(s)

This will return false as the role doesn’t exist in your guide:

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