Skip to content

$createRole

$createRole will create a new guild role.

Usage

$createRole[guildID;name;color;position?;icon?;hoist?;unicodeEmoji?;mentionable?;position?;returnId?;...permissions?]

Parameters

FieldTypeDescriptionRequired
guildIDnumberThe ID of the guild where the role will be created in.true
namestringThe name of the new role.true
colornumberThe color of the new role.true
position?numberThe position of the role, 1 being the very bottom.false
icon?stringThe image URL that will be used as icon.false
hoist?booleanIf the new role should be hoisted.false
unicodeEmoji?stringThe unicodeEmoji that will be used as icon.false
mentionable?booleanIf the role is mentionable by @everyone.false
returnID?booleanReturn the ID of the newly created role?false
reason?numberThe reason that will be displayed in the guilds’ audit logs.false
…permissions?stringPermissions the role will have.false

Example(s)

This will create a new role called “Bird” in the color of red:

1
client.command({
2
name: "createRole",
3
code: `
4
$createRole[$guildID;Bird;FF0000;1;;false;❤;false;false;Some reason!;sendmessages;addreactions]`
5
});