Interface ICurrentUser
public interface ICurrentUser : IUser, IMentionable, ISnowflake
- Inherited Members
Properties
Acls
Access control list entries for the user.
HashSet<string>? Acls { get; }
Property Value
AuthenticatorTypes
The types of authenticators configured for MFA.
HashSet<AuthenticatorType>? AuthenticatorTypes { get; }
Property Value
The email address associated with the account.
string? Email { get; }
Property Value
EmailBounced
Whether the current email address is marked as bounced by the mail provider.
bool EmailBounced { get; }
Property Value
HasEverPurchased
Whether the user has ever made a purchase.
bool HasEverPurchased { get; }
Property Value
IsEmailVerified
Whether the email address has been verified.
bool IsEmailVerified { get; }
Property Value
IsMfaEnabled
Whether multi-factor authentication is enabled.
bool IsMfaEnabled { get; }
Property Value
IsPhoneVerified
The user has verified their phone number.
bool IsPhoneVerified { get; }
Property Value
IsStaff
Whether the user has staff permissions.
bool IsStaff { get; }
Property Value
PasswordLastChangedAt
DateTimeOffset? PasswordLastChangedAt { get; }
Property Value
Phone
The phone number associated with the account.
string? Phone { get; }
Property Value
PremiumBillingCycle
The billing cycle for the premium subscription.
string? PremiumBillingCycle { get; }
Property Value
PremiumLifetimeSequence
The sequence number for lifetime premium subscribers.
int? PremiumLifetimeSequence { get; }
Property Value
- int?
PremiumSince
ISO8601 timestamp of when premium was first activated.
DateTimeOffset? PremiumSince { get; }
Property Value
PremiumType
The type of premium subscription.
PremiumType PremiumType { get; }
Property Value
PremiumUntil
ISO8601 timestamp of when the current premium period ends.
DateTimeOffset? PremiumUntil { get; }
Property Value
PremiumWillCancel
Whether premium is set to cancel at the end of the billing period.
bool PremiumWillCancel { get; }
Property Value
Traits
Special traits assigned to the user account.
HashSet<string>? Traits { get; }
Property Value
Methods
GetBannerUrl(int)
Get the user's banner.
string? GetBannerUrl(int size)
Parameters
sizeint