Member constructor

Member({
  1. required Snowflake id,
  2. required String username,
  3. required String? nickname,
  4. required String? globalName,
  5. required String discriminator,
  6. required MemberAssets assets,
  7. required MemberFlagsManager flags,
  8. required DateTime? premiumSince,
  9. required int? publicFlags,
  10. required MemberRoleManager roles,
  11. required bool isBot,
  12. required bool isPending,
  13. required MemberTimeout timeout,
  14. required bool mfaEnabled,
  15. required String? locale,
  16. required PremiumTier premiumType,
  17. required DateTime? joinedAt,
  18. required Permissions permissions,
  19. required int? accentColor,
  20. required Presence? presence,
})

Implementation

Member({
  required this.id,
  required this.username,
  required this.nickname,
  required this.globalName,
  required this.discriminator,
  required this.assets,
  required this.flags,
  required this.premiumSince,
  required this.publicFlags,
  required this.roles,
  required this.isBot,
  required this.isPending,
  required this.timeout,
  required this.mfaEnabled,
  required this.locale,
  required this.premiumType,
  required this.joinedAt,
  required this.permissions,
  required this.accentColor,
  required this.presence,
}) {
  voice = MemberVoice(this);
}