Constructors
-
Role.new({required Snowflake id, required String name, required Color color, required bool hoist, required int position, required Permissions permissions, required bool managed, required bool mentionable, required int flags, required String? icon, required String? unicodeEmoji, required Snowflake serverId})
-
Methods
-
delete({String? reason})
→ Future<void>
-
Delete this role.
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
resolveServer({bool force = false})
→ Future<Server>
-
Get the server this role belongs to.
-
setColor(Color color, String? reason)
→ Future<void>
-
Set the role's color.
-
setHoist(bool hoist, String? reason)
→ Future<void>
-
Set the role's hoist status.
-
setMentionable(bool value, String? reason)
→ Future<void>
-
Enable or disable the role's mentionable status.
-
setName(String name, String? reason)
→ Future<void>
-
Set the role's name.
-
setUnicodeEmoji(String emoji, String? reason)
→ Future<void>
-
Set the role's emoji.
-
toString()
→ String
-
A string representation of this object.
inherited
-
update({String? name, Color? color, bool? hoist, String? emoji, bool? mentionable, String? reason})
→ Future<void>
-
Update the role.