User constructor

User({
  1. required Snowflake id,
  2. required String username,
  3. required String discriminator,
  4. required String? avatar,
  5. required bool? bot,
  6. required bool? system,
  7. required bool? mfaEnabled,
  8. required String? locale,
  9. required bool? verified,
  10. required String? email,
  11. required int? flags,
  12. required PremiumTier? premiumType,
  13. required int? publicFlags,
  14. required UserAssets assets,
  15. required DateTime? createdAt,
  16. required Presence? presence,
})

Implementation

User({
  required this.id,
  required this.username,
  required this.discriminator,
  required this.avatar,
  required this.bot,
  required this.system,
  required this.mfaEnabled,
  required this.locale,
  required this.verified,
  required this.email,
  required this.flags,
  required this.premiumType,
  required this.publicFlags,
  required this.assets,
  required this.createdAt,
  required this.presence,
});