UserPrivateResponse class

Annotations
  • @JsonSerializable.new()

Constructors

UserPrivateResponse({required String? pronouns, required String username, required String discriminator, required String? globalName, required String? avatar, required Int32Type? avatarColor, required String? privacyAgreedAt, required String? termsAgreedAt, required PublicUserFlags flags, required UserPrivateResponsePendingBulkMessageDeletion? pendingBulkMessageDeletion, required bool isStaff, required List<String> acls, required List<String> traits, required String? email, required int unreadGiftInventoryCount, required bool hasUnreadGiftInventory, required bool hasVerifiedPhone, required String? bio, required String id, required Int32Type? accentColor, required String? banner, required Int32Type? bannerColor, required bool mfaEnabled, required bool hasEverPurchased, required bool verified, required UserPremiumTypes? premiumType, required String? premiumSince, required String? premiumUntil, required bool premiumWillCancel, required String? premiumBillingCycle, required Int32Type? premiumLifetimeSequence, required String? premiumGraceEndsAt, required bool premiumDiscriminator, required bool premiumBadgeHidden, required bool hasDismissedPremiumOnboarding, required bool premiumBadgeTimestampHidden, required bool premiumBadgeSequenceHidden, required bool premiumPurchaseDisabled, required bool premiumEnabledOverride, required bool premiumPerksDisabled, required bool nsfwAllowed, required String? passwordLastChangedAt, required List<String> requiredActions, required bool premiumBadgeMasked, DateTime? premiumOutOfBandTrialEndsAt, List<UserAuthenticatorTypes>? authenticatorTypes, String? phone, bool? emailBounced, MentionReplyPreferences? mentionFlags, bool? ageVerifiedAdult, bool? system, bool? bot, bool? forceInboundPhoneVerification})
const
UserPrivateResponse.fromJson(Map<String, Object?> json)
factory

Properties

accentColor Int32Type?
The user-selected accent color as an integer
final
acls List<String>
Access control list entries for the user
final
ageVerifiedAdult bool?
Whether the user has verified their age as an adult via credit card verification
final
authenticatorTypes List<UserAuthenticatorTypes>?
The types of authenticators configured for MFA
final
avatar String?
The hash of the user avatar image
final
avatarColor Int32Type?
The dominant avatar color of the user as an integer
final
The hash of the user profile banner image
final
bannerColor Int32Type?
The default banner color if no custom banner is set
final
bio String?
The user biography text
final
bot bool?
Whether the user is a bot account
final
discriminator String
The four-digit discriminator tag of the user
final
email String?
The email address associated with the account
final
emailBounced bool?
Whether the current email address is marked as bounced by the mail provider
final
flags PublicUserFlags
final
forceInboundPhoneVerification bool?
Whether this account is forced through the inbound (expensive-destination) phone verification flow regardless of prefix, for debugging
final
globalName String?
The display name of the user, if set
final
hasDismissedPremiumOnboarding bool
Whether the user has dismissed the premium onboarding flow
final
hasEverPurchased bool
Whether the user has ever made a purchase
final
hashCode int
The hash code for this object.
no setterinherited
hasUnreadGiftInventory bool
Whether there are unread items in the gift inventory
final
hasVerifiedPhone bool
Whether this account has completed phone verification
final
id String
The unique identifier (snowflake) for this user
final
isStaff bool
Whether the user has staff permissions
final
mentionFlags MentionReplyPreferences?
The user's account-wide reply mention preference
final
mfaEnabled bool
Whether multi-factor authentication is enabled
final
nsfwAllowed bool
Whether the user is allowed to view NSFW content
final
passwordLastChangedAt String?
ISO8601 timestamp of the last password change
final
pendingBulkMessageDeletion UserPrivateResponsePendingBulkMessageDeletion?
Information about a pending bulk message deletion request. Only populated when the legacy delayed-deletion flow is in progress; the new immediate-deletion flow does not surface a pending state here.
final
phone String?
Always null. Retained for old-client backward compatibility — phone numbers are no longer stored on the user record.
final
premiumBadgeHidden bool
Whether the premium badge is hidden on the profile
final
premiumBadgeMasked bool
Whether the premium badge shows a masked appearance
final
premiumBadgeSequenceHidden bool
Whether the lifetime sequence number is hidden
final
premiumBadgeTimestampHidden bool
Whether the premium start timestamp is hidden
final
premiumBillingCycle String?
The billing cycle for the premium subscription
final
premiumDiscriminator bool
Whether the user selected a premium-only discriminator that will be rerolled when non-lifetime premium access ends
final
premiumEnabledOverride bool
Whether premium features are enabled via override
final
premiumGraceEndsAt String?
ISO8601 timestamp at which the post-cancel grace period ends. Set when the subscription is fully canceled in Stripe; perks remain active and the original premium_since is restored on resubscribe until this timestamp passes. Null when not in grace.
final
premiumLifetimeSequence Int32Type?
The sequence number for lifetime premium subscribers
final
premiumOutOfBandTrialEndsAt DateTime?
When the out-of-band premium trial ends
final
premiumPerksDisabled bool
Whether premium perks are temporarily disabled for this account
final
premiumPurchaseDisabled bool
Whether premium purchases are disabled for this account
final
premiumSince String?
ISO8601 timestamp of when premium was first activated
final
premiumType UserPremiumTypes?
The type of premium subscription
final
premiumUntil String?
ISO8601 timestamp of when the current premium period ends
final
premiumWillCancel bool
Whether premium is set to cancel at the end of the billing period
final
privacyAgreedAt String?
ISO8601 timestamp of when the user last agreed to the privacy policy
final
pronouns String?
The preferred pronouns of the user
final
requiredActions List<String>
Actions the user must complete before full access
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
system bool?
Whether the user is an official system user
final
termsAgreedAt String?
ISO8601 timestamp of when the user last agreed to the terms of service
final
traits List<String>
Special traits assigned to the user account
final
unreadGiftInventoryCount int
The number of unread gift inventory items
final
username String
The username of the user, not unique across the platform
final
verified bool
Whether the email address has been verified
final

Methods

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

Operators

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