Role class Null safety

Inheritance
Implemented types

Properties

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

Methods

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. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

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