Search Results for

    Show / Hide Table of Contents

    Interface IDiscordUser

    Represents a discord User Structure API model. Docs: https://discord.com/developers/docs/resources/user#user-object-user-structure

    Namespace: Color_Chan.Discord.Core.Common.Models
    Assembly: Color-Chan.Discord.Core.dll
    Syntax
    public interface IDiscordUser

    Properties

    | Improve this Doc View Source

    Avatar

    The user's avatar hash.

    Declaration
    string Avatar { get; set; }
    Property Value
    Type Description
    System.String
    | Improve this Doc View Source

    Discriminator

    The user's 4-digit discord-tag

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

    Email

    The user's email.

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

    HasMfaEnabled

    Whether the user has two factor enabled on their account.

    Declaration
    bool? HasMfaEnabled { get; set; }
    Property Value
    Type Description
    System.Nullable<System.Boolean>
    | Improve this Doc View Source

    Id

    The user's id.

    Declaration
    ulong Id { get; set; }
    Property Value
    Type Description
    System.UInt64
    | Improve this Doc View Source

    IsBot

    Whether the user belongs to an OAuth2 application.

    Declaration
    bool? IsBot { get; set; }
    Property Value
    Type Description
    System.Nullable<System.Boolean>
    | Improve this Doc View Source

    IsSystemUser

    Whether the user is an Official Discord System user (part of the urgent message system).

    Declaration
    bool? IsSystemUser { get; set; }
    Property Value
    Type Description
    System.Nullable<System.Boolean>
    | Improve this Doc View Source

    Locale

    The user's chosen language option.

    Declaration
    string Locale { get; set; }
    Property Value
    Type Description
    System.String
    | Improve this Doc View Source

    PremiumType

    The type of Nitro subscription on a user's account.

    Declaration
    DiscordPremiumType? PremiumType { get; set; }
    Property Value
    Type Description
    System.Nullable<DiscordPremiumType>
    | Improve this Doc View Source

    PrivateFlags

    The private flags on a user's account.

    Declaration
    DiscordUserFlags? PrivateFlags { get; set; }
    Property Value
    Type Description
    System.Nullable<DiscordUserFlags>
    | Improve this Doc View Source

    PublicFlags

    The public flags on a user's account.

    Declaration
    DiscordUserFlags? PublicFlags { get; set; }
    Property Value
    Type Description
    System.Nullable<DiscordUserFlags>
    | Improve this Doc View Source

    Username

    The user's username, not unique across the platform.

    Declaration
    string Username { get; set; }
    Property Value
    Type Description
    System.String
    | Improve this Doc View Source

    Verified

    Whether the email on this account has been verified.

    Declaration
    bool? Verified { get; set; }
    Property Value
    Type Description
    System.Nullable<System.Boolean>

    Methods

    | Improve this Doc View Source

    ToDataModel()

    Converts the model back to a discord data model so that it can be send to discord.

    Declaration
    DiscordUserData ToDataModel()
    Returns
    Type Description
    DiscordUserData

    The converted DiscordUserData.

    Extension Methods

    DiscordUserExtensions.Mention(IDiscordUser, Boolean)
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX