User class
- Annotations
-
- @JsonSerializable(includeIfNull: false)
Constructors
-
User({required String id, required String username, required String discriminator, String? avatar, bool? bot, bool? system, bool? mfaEnabled, String? banner, int? accentColor, String? locale, bool? verified, String? email, List<
UserFlag> ? flags, List<UserFlag> ? publicFlags, GuildMember? member}) - Constructor
-
User.fromJson(Map<
String, dynamic> json) -
From json
factory
Properties
- accentColor → int?
-
the user's banner color encoded as an integer representation of hexadecimal color code
final
- avatar → String?
-
the user's avatar hash
final
-
the user's banner hash
final
- bot → bool?
-
whether the user belongs to an OAuth2 application
final
- discriminator → String
-
the user's 4-digit discord-tag
final
- email → String?
-
the user's email
final
-
flags
→ List<
UserFlag> ? -
the flags on a user's account
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
the user's id
final
- locale → String?
-
the user's chosen language option
final
- member → GuildMember?
-
partial GuildMember object
final
- mfaEnabled → bool?
-
whether the user has two factor enabled on their account
final
-
the type of Nitro subscription on a user's account
final
-
publicFlags
→ List<
UserFlag> ? -
the public flags on a user's account
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- system → bool?
-
whether the user is an Official Discord System user (part of the urgent message system)
final
- username → String
-
the user's username, not unique across the platform
final
- verified → bool?
-
whether the email on record for this user has been verified
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - To json
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited