Table of Contents

Class CurrentUser

Namespace
Fluxer.Net
Assembly
Fluxer.Net.dll

Fluxer entity with client attached.

public class CurrentUser : User, ICurrentUser, IUser, IMentionable, ISnowflake, IUserProfile
Inheritance
object
CurrentUser
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

HashSet<string>

AuthenticatorTypes

The types of authenticators configured for MFA.

public HashSet<AuthenticatorType>? AuthenticatorTypes { get; }

Property Value

HashSet<AuthenticatorType>

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

string

Bio

The user biography text.

public string? Bio { get; }

Property Value

string

Email

The email address associated with the account.

public string? Email { get; }

Property Value

string

EmailBounced

Whether the current email address is marked as bounced by the mail provider.

public bool EmailBounced { get; }

Property Value

bool

HasEverPurchased

Whether the user has ever made a purchase.

public bool HasEverPurchased { get; }

Property Value

bool

IsEmailVerified

Whether the email address has been verified.

public bool IsEmailVerified { get; }

Property Value

bool

IsMfaEnabled

Whether multi-factor authentication is enabled.

public bool IsMfaEnabled { get; }

Property Value

bool

IsPhoneVerified

The user has verified their phone number.

public bool IsPhoneVerified { get; }

Property Value

bool

IsStaff

Whether the user has staff permissions.

public bool IsStaff { get; }

Property Value

bool

PasswordLastChangedAt

public DateTimeOffset? PasswordLastChangedAt { get; }

Property Value

DateTimeOffset?

Phone

The phone number associated with the account.

public string? Phone { get; }

Property Value

string

PremiumBillingCycle

The billing cycle for the premium subscription.

public string? PremiumBillingCycle { get; }

Property Value

string

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

DateTimeOffset?

PremiumType

The type of premium subscription.

public PremiumType PremiumType { get; }

Property Value

PremiumType

PremiumUntil

ISO8601 timestamp of when the current premium period ends.

public DateTimeOffset? PremiumUntil { get; }

Property Value

DateTimeOffset?

PremiumWillCancel

Whether premium is set to cancel at the end of the billing period.

public bool PremiumWillCancel { get; }

Property Value

bool

Pronouns

The preferred pronouns of the user.

public string? Pronouns { get; }

Property Value

string

Traits

Special traits assigned to the user account.

public HashSet<string>? Traits { get; }

Property Value

HashSet<string>

Methods

Create(FluxerBaseClient, CurrentUserJson)

Create a CurrentUser object from json.

public static CurrentUser Create(FluxerBaseClient client, CurrentUserJson json)

Parameters

client FluxerBaseClient
json CurrentUserJson

Returns

CurrentUser

GetBannerUrl(int)

Get the user's banner.

public string? GetBannerUrl(int size = 600)

Parameters

size int

Returns

string