Interface ISelfUser
- Namespace
- Discord
- Assembly
- Discord.Net.Core.dll
Represents the logged-in Discord user.
public interface ISelfUser : IUser, ISnowflakeEntity, IEntity<ulong>, IMentionable, IPresence
- Inherited Members
- Extension Methods
Properties
Gets the email associated with this user.
string Email { get; }
Property Value
Flags
Gets the flags that are applied to a user's account.
UserProperties Flags { get; }
Property Value
- UserProperties
The value of flags for this user.
Remarks
This value is determined by bitwise OR-ing UserProperties values together.
IsMfaEnabled
Indicates whether or not this user has MFA enabled on their account.
bool IsMfaEnabled { get; }
Property Value
IsVerified
Indicates whether or not this user has their email verified.
bool IsVerified { get; }
Property Value
Locale
Gets the user's chosen language option.
string Locale { get; }
Property Value
- string
The IETF language tag of the user's chosen region, if provided. For example, a locale of "English, US" is "en-US", "Chinese (Taiwan)" is "zh-TW", etc.
PremiumType
Gets the type of Nitro subscription that is active on this user's account.
PremiumType PremiumType { get; }
Property Value
- PremiumType
The type of Nitro subscription the user subscribes to, if any.
Remarks
This information may only be available with the identify OAuth scope.
Methods
ModifyAsync(Action<SelfUserProperties>, RequestOptions)
Modifies the user's properties.
Task ModifyAsync(Action<SelfUserProperties> func, RequestOptions options = null)
Parameters
func
Action<SelfUserProperties>options
RequestOptions