Tags

{role} Tags

{role.id;role}

Gets the ID of a given role.

NameTypeDescription
roleRole?The role to get the ID of.

{role.name;role}

Gets the name of a given role.

NameTypeDescription
roleRole?The role to get the name of.

{role.mention allow_mention;role}

Returns the role @mention.

NameTypeDefaultDescription
roleRole?The role to get the mention of.
allow_mentionbooleantrueWhether to ping the role with this mention.

{role.position;role}

Gets the position of a role.

NameTypeDescription
roleRole?The role to get the position of.

{role.color;role}

Gets the hex code of a role.

NameTypeDefaultDescription
roleRole?The role to get the color of.
decimalbooleanfalseWhether to return the role color in decimal.

{role.managed;role}

Returns true for managed roles. ex: Server Boost and Bot roles.

NameTypeDescription
roleRole?The role to check if it is managed.

{role.mentionable;role}

Returns a boolean indicating whether the role can be mentioned.

NameTypeDescription
roleRole?The role to check if it is mentionable.

{role.createdAt}

Returns the date the role was created.

NameTypeDescription
roleRole?The role to get the creation date of.

{role.hasPermission;permission_name;role}

Check whether the role has the specified permission.

{role.hasPermission;administrator}

NameTypeDescription
permissionPermissionThe permission to check for.
roleRole?The role to check the permission of.

{role.hoisted}

Returns a boolean indicating whether the role is hoisted above other roles in the member list.

NameTypeDescription
roleRole?The role to check if it is hoisted.

{role.edit name color reason;role}

Note

This tag is part of the Mutate Role expensive group.

Edit the role.

NameTypeDescription
roleRole?The role to edit.
namestring?Set the role's name.
colorColour?Set the role's colour.
reasonstring?The reason you are editing this role.
{role.edit name="Very cool" colour=teal}

{role.create name color reason return_id;role}

Note

This tag is part of the Mutate Role expensive group.

Create a new role.

NameTypeDefaultDescription
namestringThe name of the role.
colorColour?The color of the role.
reasonstring?The reason you are creating this role.
return_idbooleanfalseWhether to return the created role's ID.

{role.delete reason;role}

Note

This tag is part of the Mutate Role expensive group. This tag is marked Dangerous and must be enabled in Advanced Settings.

Delete a role.

NameTypeDescription
roleRoleThe role to delete.
reasonstring?The reason you are deleting this role.

{role.icon;size;hash}

Gets the icon of the role.

NameTypeDefaultDescription
roleRole?The role to get the icon of.
sizenumber256The size of the icon to return.
hashbooleanfalseWhether to return the icon hash instead of the URL created from the hash.