Role class final

Constructors

Role({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})

Properties

color Color
final
dataStoreRole → RolePart
no setter
flags int
final
hashCode int
The hash code for this object.
no setterinherited
hoist bool
final
icon String?
final
id Snowflake
final
managed bool
final
mentionable bool
final
name String
final
permissions → Permissions
final
position int
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
server Server
latefinal
unicodeEmoji String?
final

Methods

delete(String? reason) Future<void>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setColor(Color color, String? reason) Future<void>
setHoist(bool hoist, String? reason) Future<void>
setMentionable(bool value, String? reason) Future<void>
setName(String name, String? reason) Future<void>
setUnicodeEmoji(String emoji, String? reason) Future<void>
toString() String
A string representation of this object.
inherited

Operators

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