RoleManager class final

Constructors

RoleManager(Snowflake _serverId)

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

create({required String name, required List<Permission> permissions, required Color color, bool hoist = false, bool mentionable = false, String? reason}) Future<Role>
Create a new role.
fetch({bool force = false}) Future<Map<Snowflake, Role>>
Fetch the server's channels.
get(String id, {bool force = false}) Future<Role?>
Get a channel by its id.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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