IRole class

Represents Guild role. Interface allows basic operations on member but does not guarantee data to be valid or available

Inheritance
Implementers

Properties

client Nyxx
Reference to client
final
createdAt DateTime
Gets creation timestamp included in Snowflake
read-only, inherited
guildId Snowflake
Id of role's Guild
final
hashCode int
The hash code for this object. [...]
read-only, inherited
id Snowflake
ID of entity as Snowflake
final, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

addToUser(User user, {String auditReason}) Future<void>
Adds role to user.
delete({String auditReason}) 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
Returns a string representation of this object.
inherited

Operators

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