Role class
Constructors
- Role.new({required Snowflake id, required String name, required int color, required bool hoist, String? icon, String? unicodeEmoji, required int position, required BitMask perms, required bool managed, required bool mentionable, RoleTags? tags, required BitMask flags})
-
Role.decode(Map<
String, dynamic> js) -
factory
- Role.fromJson(String js)
-
factory
Properties
- color ↔ int
-
getter/setter pair
- flags ↔ BitMask
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- hoist ↔ bool
-
getter/setter pair
- icon ↔ String?
-
getter/setter pair
- id ↔ Snowflake
-
getter/setter pair
- managed ↔ bool
-
getter/setter pair
- mentionable ↔ bool
-
getter/setter pair
- name ↔ String
-
getter/setter pair
- perms ↔ BitMask
-
getter/setter pair
- position ↔ int
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
getter/setter pair
- unicodeEmoji ↔ String?
-
getter/setter pair
Methods
-
encode(
) → String -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited