Skip to content

$roleName

$roleName will return the name of a specific role.

Usage

$roleName[roleID;guildID?]

Parameters

FieldTypeDescriptionRequired
roleIDnumberThe role ID of which you want the role name to be returned of.true
guildID?numberThe guild ID.false

Example(s)

This will return the role name of any role you may like, in this case, It would return @everyone:

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