Role class final
Constructors
Properties
- color → Color
-
final
- dataStoreRole → RolePartContract
-
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> - Delete this role.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
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
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited