Search Results for

    Show / Hide Table of Contents

    Class SocketSelfUser

    Represents the logged-in WebSocket-based user.

    Inheritance
    Object
    SocketEntity<UInt64>
    SocketUser
    SocketSelfUser
    Implements
    IEntity<UInt64>
    ISelfUser
    IUser
    ISnowflakeEntity
    IEntity<UInt64>
    IMentionable
    IPresence
    Inherited Members
    SocketUser.PublicFlags
    SocketUser.CreatedAt
    SocketUser.Discriminator
    SocketUser.Mention
    SocketUser.Status
    SocketUser.ActiveClients
    SocketUser.Activities
    SocketUser.MutualGuilds
    SocketUser.CreateDMChannelAsync(RequestOptions)
    SocketUser.GetAvatarUrl(ImageFormat, UInt16)
    SocketUser.GetDefaultAvatarUrl()
    SocketUser.ToString()
    SocketEntity<UInt64>.Id
    Namespace: Discord.WebSocket
    Assembly: Discord.Net.WebSocket.dll
    Syntax
    public class SocketSelfUser : SocketUser, IEntity<ulong>, ISelfUser, IUser, ISnowflakeEntity, IEntity<ulong>, IMentionable, IPresence

    Properties

    | Improve this Doc View Source

    AvatarId

    Declaration
    public override string AvatarId { get; }
    Property Value
    Type Description
    String
    Overrides
    SocketUser.AvatarId
    | Improve this Doc View Source

    DiscriminatorValue

    Declaration
    public override ushort DiscriminatorValue { get; }
    Property Value
    Type Description
    UInt16
    Overrides
    SocketUser.DiscriminatorValue
    | Improve this Doc View Source

    Email

    Declaration
    public string Email { get; }
    Property Value
    Type Description
    String
    | Improve this Doc View Source

    Flags

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

    Declaration
    public UserProperties Flags { get; }
    Property Value
    Type Description
    UserProperties

    The value of flags for this user.

    Remarks

    This value is determined by bitwise OR-ing UserProperties values together.

    | Improve this Doc View Source

    IsBot

    Declaration
    public override bool IsBot { get; }
    Property Value
    Type Description
    Boolean
    Overrides
    SocketUser.IsBot
    | Improve this Doc View Source

    IsMfaEnabled

    Declaration
    public bool IsMfaEnabled { get; }
    Property Value
    Type Description
    Boolean
    | Improve this Doc View Source

    IsVerified

    Declaration
    public bool IsVerified { get; }
    Property Value
    Type Description
    Boolean
    | Improve this Doc View Source

    IsWebhook

    Declaration
    public override bool IsWebhook { get; }
    Property Value
    Type Description
    Boolean
    Overrides
    SocketUser.IsWebhook
    | Improve this Doc View Source

    Locale

    Declaration
    public string Locale { get; }
    Property Value
    Type Description
    String
    | 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.

    Remarks

    This information may only be available with the identify OAuth scope.

    | Improve this Doc View Source

    Username

    Declaration
    public override string Username { get; }
    Property Value
    Type Description
    String
    Overrides
    SocketUser.Username

    Methods

    | Improve this Doc View Source

    ModifyAsync(Action<SelfUserProperties>, RequestOptions)

    Declaration
    public Task ModifyAsync(Action<SelfUserProperties> func, RequestOptions options = null)
    Parameters
    Type Name Description
    Action<SelfUserProperties> func
    RequestOptions options
    Returns
    Type Description
    Task

    Implements

    IEntity<TId>
    ISelfUser
    IUser
    ISnowflakeEntity
    IEntity<TId>
    IMentionable
    IPresence

    Theme

    • Improve this Doc
    • View Source
    In This Article
    Back to top Discord.Net (c) 2015-2022 3.6.0