Skip to main content

Interface ISelfUser

Represents the logged-in Discord user.

Assembly: Discord.Net.Core.dll​
View Source​
Declaration
public interface ISelfUser : IUser, ISnowflakeEntity, IEntity<ulong>, IMentionable, IPresence

Properties​

Email​

Gets the email associated with this user.

View Source​
Declaration
string Email { get; }

IsVerified​

Indicates whether or not this user has their email verified.

View Source​
Declaration
bool IsVerified { get; }

IsMfaEnabled​

Indicates whether or not this user has MFA enabled on their account.

View Source​
Declaration
bool IsMfaEnabled { get; }

Flags​

Gets the flags that are applied to a user's account.

View Source​
Declaration
UserProperties Flags { get; }

PremiumType​

Gets the type of Nitro subscription that is active on this user's account.

View Source​
Declaration
PremiumType PremiumType { get; }

Locale​

Gets the user's chosen language option.

View Source​
Declaration
string Locale { get; }

Methods​

ModifyAsync(Action<SelfUserProperties>, RequestOptions)​

Modifies the user's properties.

View Source​
Declaration
Task ModifyAsync(Action<SelfUserProperties> func, RequestOptions options = null)
Returns​

System.Threading.Tasks.Task

Parameters​
TypeName
System.Action<Discord.SelfUserProperties>func
Discord.RequestOptionsoptions

Extension Methods​

  • Discord.IUser.Discord.UserExtensions.SendMessageAsync(System.String,System.Boolean,Discord.Embed,Discord.RequestOptions,Discord.AllowedMentions,Discord.MessageComponent,Discord.Embed[])
  • Discord.IUser.Discord.UserExtensions.SendFileAsync(System.IO.Stream,System.String,System.String,System.Boolean,Discord.Embed,Discord.RequestOptions,Discord.MessageComponent,Discord.Embed[])
  • Discord.IUser.Discord.UserExtensions.SendFileAsync(System.String,System.String,System.Boolean,Discord.Embed,Discord.RequestOptions,Discord.MessageComponent,Discord.Embed[])