Role class Null safety

Implemented types


client INyxx
Reference to client
color DiscordColor
The role's color, 0 if no color.
final, read / write, late
createdAt DateTime
Gets creation timestamp included in Snowflake
read-only, inherited
guild Cacheable<Snowflake, Guild>
Cachealble or guild attached to this role instance
final, read / write, late
hashCode int
The hash code for this object. [...]
read-only, inherited
hoist bool
If the role is pinned in the user listing.
final, read / write, late
id Snowflake
ID of entity as Snowflake
final, inherited
managed bool
Whether or not the role is managed by an integration.
final, read / write, late
mention String
Mention of role. If role cannot be mentioned it returns name of role (@name)
read-only, override
mentionable bool
Whether or not the role is mentionable.
final, read / write, late
name String
The role's name.
final, read / write, late
permissions Permissions
The role's permissions.
final, read / write, late
position int
The role's position.
final, read / write, late
roleTags RoleTags?
Additional role data like if role is managed by integration or role is from server boosting.
final, read / write, late
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited


delete() Future<void>
Deletes the role.
edit(RoleBuilder role, {String? auditReason}) Future<Role>
Edits the role.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
toString() String
A string representation of this object. [...]


operator ==(dynamic other) bool
The equality operator. [...]