Class CurrentUser
Fluxer entity with client attached.
public class CurrentUser : User, ICurrentUser, IUser, IMentionable, ISnowflake, IUserProfile
- Inheritance
-
objectCurrentUser
- Implements
- Derived
- Inherited Members
- Extension Methods
Properties
AccentColor
The user-selected accent color as an integer.
public int? AccentColor { get; }
Property Value
- int?
Acls
Access control list entries for the user.
public HashSet<string>? Acls { get; }
Property Value
AuthenticatorTypes
The types of authenticators configured for MFA.
public HashSet<AuthenticatorType>? AuthenticatorTypes { get; }
Property Value
BannerColor
Default banner color if no custom banner.
public int? BannerColor { get; }
Property Value
- int?
BannerHash
The hash of the user profile banner image.
public string? BannerHash { get; }
Property Value
Bio
The user biography text.
public string? Bio { get; }
Property Value
The email address associated with the account.
public string? Email { get; }
Property Value
EmailBounced
Whether the current email address is marked as bounced by the mail provider.
public bool EmailBounced { get; }
Property Value
HasEverPurchased
Whether the user has ever made a purchase.
public bool HasEverPurchased { get; }
Property Value
IsEmailVerified
Whether the email address has been verified.
public bool IsEmailVerified { get; }
Property Value
IsMfaEnabled
Whether multi-factor authentication is enabled.
public bool IsMfaEnabled { get; }
Property Value
IsPhoneVerified
The user has verified their phone number.
public bool IsPhoneVerified { get; }
Property Value
IsStaff
Whether the user has staff permissions.
public bool IsStaff { get; }
Property Value
PasswordLastChangedAt
public DateTimeOffset? PasswordLastChangedAt { get; }
Property Value
Phone
The phone number associated with the account.
public string? Phone { get; }
Property Value
PremiumBillingCycle
The billing cycle for the premium subscription.
public string? PremiumBillingCycle { get; }
Property Value
PremiumLifetimeSequence
The sequence number for lifetime premium subscribers.
public int? PremiumLifetimeSequence { get; }
Property Value
- int?
PremiumSince
ISO8601 timestamp of when premium was first activated.
public DateTimeOffset? PremiumSince { get; }
Property Value
PremiumType
The type of premium subscription.
public PremiumType PremiumType { get; }
Property Value
PremiumUntil
ISO8601 timestamp of when the current premium period ends.
public DateTimeOffset? PremiumUntil { get; }
Property Value
PremiumWillCancel
Whether premium is set to cancel at the end of the billing period.
public bool PremiumWillCancel { get; }
Property Value
Pronouns
The preferred pronouns of the user.
public string? Pronouns { get; }
Property Value
Traits
Special traits assigned to the user account.
public HashSet<string>? Traits { get; }
Property Value
Methods
Create(FluxerBaseClient, CurrentUserJson)
Create a CurrentUser object from json.
public static CurrentUser Create(FluxerBaseClient client, CurrentUserJson json)
Parameters
clientFluxerBaseClientjsonCurrentUserJson
Returns
GetBannerUrl(int)
Get the user's banner.
public string? GetBannerUrl(int size = 600)
Parameters
sizeint