Role class

Constructors

Role({required String id, required String name, required int color, required bool hoist, required int position, required String permissions, required bool managed, required bool mentionable, RoleTags? tags})

Properties

color int
final
hashCode int
The hash code for this object.
no setterinherited
hoist bool
final
id String
final
managed bool
final
mentionable bool
final
name String
final
permissions String
final
position int
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tags RoleTags?
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

fromJson(Map<String, dynamic> json) Role