The color for this role. It is a hexadecimal color code represented in integer format.
The default color for roles (no color) is
The id of the discord.Guild this role belongs to.
true if this role is hoisted in the member list (displayed separately).
Members are grouped into their highest positioned role in the member list if a role is hoisted.
The role's unique Discord id. This field never changes.
true if this role was created by an integration or bot application.
Managed roles have restrictions around what can be edited, depending on the application.
true if this role can be mentioned in messages by members of the guild.
When a role is mentioned, they receive a ping/notification if they have notifications enabled for mentions on the guild.
The display name for the role.
The permission bit set assigned to this role. Members receive permissions in the order roles are positioned.
The position of this role.
Hoisted roles are displayed in this order.
Role permissions are applied to members in the order of the permission set on roles.
Deletes the role and removes it from all the members who had it assigned.
If an error occurs, a discord.ApiError is thrown.
Returns a mention string in the format of
<@!id> where id is the id of this user.
Can be used in a message to mention/ping the role.
Generated using TypeDoc