MemberRoleManager class
- Mixed-in types
Constructors
- MemberRoleManager({required GuildRoleManager manager, required Snowflake memberId})
Properties
-
cache
→ Map<
Snowflake, Role> -
no setterinherited
- container → Ioc
-
Service manager including the core components of the Mineral framework
no setterinherited
- guild → Guild
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- highest → Role
-
no setter
- manager ↔ GuildRoleManager
-
getter/setter pair
- memberId ↔ Snowflake
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
add(
Snowflake id, {String? reason}) → Future< void> - Add a Role to the GuildMember
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
remove(
Snowflake id, {String? reason}) → Future< void> - Remove a Role from the GuildMember
-
resolve(
Snowflake id) → Future< Role> -
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