Search Results for

    Show / Hide Table of Contents

    Class DiscordUserData

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

    Inheritance
    Object
    DiscordUserData
    Implements
    IEquatable<DiscordUserData>
    Inherited Members
    System.Object.Equals(System.Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    Object.ToString()
    Namespace: Color_Chan.Discord.Core.Common.API.DataModels
    Assembly: Color-Chan.Discord.Core.dll
    Syntax
    public class DiscordUserData : IEquatable<DiscordUserData>

    Properties

    | Improve this Doc View Source

    Avatar

    The user's avatar hash.

    Declaration
    [JsonPropertyName("avatar")]
    public string Avatar { get; set; }
    Property Value
    Type Description
    String
    | Improve this Doc View Source

    Discriminator

    The user's 4-digit discord-tag

    Declaration
    [JsonPropertyName("discriminator")]
    public string Discriminator { get; set; }
    Property Value
    Type Description
    String
    | Improve this Doc View Source

    Email

    The user's email.

    Declaration
    [JsonPropertyName("email")]
    public string Email { get; set; }
    Property Value
    Type Description
    String
    | Improve this Doc View Source

    HasMfaEnabled

    Whether the user has two factor enabled on their account.

    Declaration
    [JsonPropertyName("mfa_enabled")]
    public bool? HasMfaEnabled { get; set; }
    Property Value
    Type Description
    System.Nullable<Boolean>
    | Improve this Doc View Source

    Id

    The user's id.

    Declaration
    [JsonPropertyName("id")]
    public 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
    [JsonPropertyName("bot")]
    public bool? IsBot { get; set; }
    Property Value
    Type Description
    System.Nullable<Boolean>
    | Improve this Doc View Source

    IsSystemUser

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

    Declaration
    [JsonPropertyName("system")]
    public bool? IsSystemUser { get; set; }
    Property Value
    Type Description
    System.Nullable<Boolean>
    | Improve this Doc View Source

    Locale

    The user's chosen language option.

    Declaration
    [JsonPropertyName("locale")]
    public string Locale { get; set; }
    Property Value
    Type Description
    String
    | Improve this Doc View Source

    PremiumType

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

    Declaration
    [JsonPropertyName("premium_type")]
    public 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
    [JsonPropertyName("flags")]
    public 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
    [JsonPropertyName("public_flags")]
    public 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
    [JsonPropertyName("username")]
    public string Username { get; set; }
    Property Value
    Type Description
    String
    | Improve this Doc View Source

    Verified

    Whether the email on this account has been verified.

    Declaration
    [JsonPropertyName("verified")]
    public bool? Verified { get; set; }
    Property Value
    Type Description
    System.Nullable<Boolean>

    Implements

    System.IEquatable<T>
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX