Class RestSelfUser
Represents the logged-in REST-based user.
Assembly: Discord.Net.Rest.dll​
View Source​
Declaration
public class RestSelfUser : RestUser, IUpdateable, ISelfUser, IUser, ISnowflakeEntity, IEntity<ulong>, IMentionable, IPresence
Properties​
Email​
Gets the email associated with this user.
View Source​
Declaration
public string Email { get; }
IsVerified​
Indicates whether or not this user has their email verified.
View Source​
Declaration
public bool IsVerified { get; }
IsMfaEnabled​
Indicates whether or not this user has MFA enabled on their account.
View Source​
Declaration
public bool IsMfaEnabled { get; }
Flags​
Gets the flags that are applied to a user's account.
View Source​
Declaration
public UserProperties Flags { get; }
PremiumType​
Gets the type of Nitro subscription that is active on this user's account.
View Source​
Declaration
public PremiumType PremiumType { get; }
Locale​
Gets the user's chosen language option.
View Source​
Declaration
public string Locale { get; }
Methods​
UpdateAsync(RequestOptions)​
Updates this object's properties with its current state.
View Source​
Declaration
public override async Task UpdateAsync(RequestOptions options = null)
Returns​
System.Threading.Tasks.Task
Parameters​
Type | Name | Description |
---|---|---|
Discord.RequestOptions | options | The options to be used when sending the request. |
ModifyAsync(Action<SelfUserProperties>, RequestOptions)​
Modifies the user's properties.
View Source​
Declaration
public async Task ModifyAsync(Action<SelfUserProperties> func, RequestOptions options = null)
Returns​
System.Threading.Tasks.Task
Parameters​
Type | Name |
---|---|
System.Action<Discord.SelfUserProperties> | func |
Discord.RequestOptions | options |