MemberRoleManager class Null safety

Mixed in types

Constructors

MemberRoleManager({required GuildRoleManager manager, required Snowflake memberId})

Properties

cache Map<Snowflake, Role>
read-only, inherited
container Ioc
Service manager including the core components of the Mineral framework
read-only, inherited
guild Guild
read-only
hashCode int
The hash code for this object.
read-only, inherited
manager ↔ GuildRoleManager
read / write
memberId Snowflake
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

add(Snowflake id, {String? reason}) Future<void>
Add a Role to the GuildMember
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
remove(Snowflake id, {String? reason}) Future<void>
Remove a Role from the GuildMember
sync() Future<Map<Snowflake, Role>>
toggle(Snowflake id, {String? reason}) Future<void>
Toggle a Role from the GuildMember. If the user has the role, this method will remove the role, else this method will add the role.
toString() String
A string representation of this object.
inherited

Operators

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