Search Results for

    Show / Hide Table of Contents

    Class RestUser

    Represents a REST-based user.

    Inheritance
    Object
    RestEntity<UInt64>
    RestUser
    RestGroupUser
    RestGuildUser
    RestSelfUser
    RestWebhookUser
    Implements
    IEntity<UInt64>
    IUser
    ISnowflakeEntity
    IEntity<UInt64>
    IMentionable
    IPresence
    IUpdateable
    Inherited Members
    RestEntity<UInt64>.Id
    Namespace: Discord.Rest
    Assembly: Discord.Net.Rest.dll
    Syntax
    public class RestUser : RestEntity<ulong>, IEntity<ulong>, IUser, ISnowflakeEntity, IEntity<ulong>, IMentionable, IPresence, IUpdateable

    Properties

    | Improve this Doc View Source

    AccentColor

    Declaration
    public Color? AccentColor { get; }
    Property Value
    Type Description
    Nullable<Color>
    | Improve this Doc View Source

    ActiveClients

    Declaration
    public virtual IReadOnlyCollection<ClientType> ActiveClients { get; }
    Property Value
    Type Description
    IReadOnlyCollection<ClientType>
    | Improve this Doc View Source

    Activities

    Declaration
    public virtual IReadOnlyCollection<IActivity> Activities { get; }
    Property Value
    Type Description
    IReadOnlyCollection<IActivity>
    | Improve this Doc View Source

    Activity

    Declaration
    public virtual IActivity Activity { get; }
    Property Value
    Type Description
    IActivity
    | Improve this Doc View Source

    AvatarId

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

    BannerId

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

    CreatedAt

    Declaration
    public DateTimeOffset CreatedAt { get; }
    Property Value
    Type Description
    DateTimeOffset
    | Improve this Doc View Source

    Discriminator

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

    DiscriminatorValue

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

    GlobalName

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

    IsBot

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

    IsWebhook

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

    Mention

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

    PublicFlags

    Declaration
    public UserProperties? PublicFlags { get; }
    Property Value
    Type Description
    Nullable<UserProperties>
    | Improve this Doc View Source

    Status

    Gets the current status of this user.

    Declaration
    public virtual UserStatus Status { get; }
    Property Value
    Type Description
    UserStatus
    | Improve this Doc View Source

    Username

    Declaration
    public string Username { get; }
    Property Value
    Type Description
    String

    Methods

    | Improve this Doc View Source

    CreateDMChannelAsync(RequestOptions)

    Creates a direct message channel to this user.

    Declaration
    public Task<RestDMChannel> CreateDMChannelAsync(RequestOptions options = null)
    Parameters
    Type Name Description
    RequestOptions options

    The options to be used when sending the request.

    Returns
    Type Description
    Task<RestDMChannel>

    A task that represents the asynchronous get operation. The task result contains a rest DM channel where the user is the recipient.

    | Improve this Doc View Source

    GetAvatarUrl(ImageFormat, UInt16)

    Declaration
    public string GetAvatarUrl(ImageFormat format = ImageFormat.Auto, ushort size = null)
    Parameters
    Type Name Description
    ImageFormat format
    UInt16 size
    Returns
    Type Description
    String
    | Improve this Doc View Source

    GetBannerUrl(ImageFormat, UInt16)

    Declaration
    public string GetBannerUrl(ImageFormat format = ImageFormat.Auto, ushort size = null)
    Parameters
    Type Name Description
    ImageFormat format
    UInt16 size
    Returns
    Type Description
    String
    | Improve this Doc View Source

    GetDefaultAvatarUrl()

    Declaration
    public string GetDefaultAvatarUrl()
    Returns
    Type Description
    String
    | Improve this Doc View Source

    ToString()

    Gets the Username#Discriminator of the user.

    Declaration
    public override string ToString()
    Returns
    Type Description
    String

    A string that resolves to Username#Discriminator of the user.

    | Improve this Doc View Source

    UpdateAsync(RequestOptions)

    Declaration
    public virtual async Task UpdateAsync(RequestOptions options = null)
    Parameters
    Type Name Description
    RequestOptions options
    Returns
    Type Description
    Task

    Implements

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

    Theme

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