User class

Constructors

User.new({required Snowflake id, required String username, required String discriminator, String? globalName, String? avatar, bool? bot, bool? system, bool? mfaEnabled, String? banner, int? accentColor, String? locale, bool? verified, String? email, BitMask? flags, BitMask? premiumType, BitMask? publicFlags, AvatarDecorationData? decoration})
User.fromJson(String js)
factory

Properties

accentColor int?
getter/setter pair
avatar String?
getter/setter pair
getter/setter pair
bot bool?
getter/setter pair
decoration AvatarDecorationData?
getter/setter pair
discriminator String
getter/setter pair
email String?
getter/setter pair
flags BitMask?
UserFlags
getter/setter pair
globalName String?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
id Snowflake
getter/setter pair
locale String?
getter/setter pair
mfaEnabled bool?
getter/setter pair
premiumType BitMask?
PremiumType
getter/setter pair
publicFlags BitMask?
UserFlags
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
system bool?
getter/setter pair
username String
getter/setter pair
verified bool?
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

Static Methods

decode(Map<String, dynamic>? js) User?