Skip to main content

Class SocketSelfUser

Represents the logged-in WebSocket-based user.

Assembly: Discord.Net.WebSocket.dll​
View Source​
Declaration
public class SocketSelfUser : SocketUser, 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; }

IsBot​

Gets a value that indicates whether this user is identified as a bot.

View Source​
Declaration
public override bool IsBot { get; }

Username​

Gets the username for this user.

View Source​
Declaration
public override string Username { get; }

DiscriminatorValue​

Gets the per-username unique ID for this user.

View Source​
Declaration
public override ushort DiscriminatorValue { get; }

AvatarId​

Gets the identifier of this user's avatar.

View Source​
Declaration
public override string AvatarId { 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; }

IsWebhook​

Gets a value that indicates whether this user is a webhook user.

View Source​
Declaration
public override bool IsWebhook { get; }

Methods​

ModifyAsync(Action<SelfUserProperties>, RequestOptions)​

Modifies the user's properties.

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

System.Threading.Tasks.Task

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

Implements​