Class RestSelfUser
Represents the logged-in REST-based user.
Assembly: Discord.Net.Rest.dll
Syntax
public class RestSelfUser : RestUser, IEntity<ulong>, IUpdateable, ISelfUser, IUser, ISnowflakeEntity, IEntity<ulong>, IMentionable, IPresence
Properties
|
Improve this Doc
View Source
Email
Declaration
public string Email { get; }
Property Value
|
Improve this Doc
View Source
Flags
Gets the flags that are applied to a user's account.
Declaration
public UserProperties Flags { get; }
Property Value
|
Improve this Doc
View Source
IsMfaEnabled
Declaration
public bool IsMfaEnabled { get; }
Property Value
|
Improve this Doc
View Source
IsVerified
Declaration
public bool IsVerified { get; }
Property Value
|
Improve this Doc
View Source
Locale
Declaration
public string Locale { get; }
Property Value
|
Improve this Doc
View Source
PremiumType
Gets the type of Nitro subscription that is active on this user's account.
Declaration
public PremiumType PremiumType { get; }
Property Value
Type |
Description |
PremiumType |
The type of Nitro subscription the user subscribes to, if any.
|
Methods
|
Improve this Doc
View Source
ModifyAsync(Action<SelfUserProperties>, RequestOptions)
Declaration
public async Task ModifyAsync(Action<SelfUserProperties> func, RequestOptions options = null)
Parameters
Returns
|
Improve this Doc
View Source
UpdateAsync(RequestOptions)
Declaration
public override async Task UpdateAsync(RequestOptions options = null)
Parameters
Returns
Overrides
Implements