Class DiscordUserData
Represents a discord User Structure API model. Docs: https://discord.com/developers/docs/resources/user#user-object-user-structure
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
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 SourceAvatar
The user's avatar hash.
Declaration
[JsonPropertyName("avatar")]
public string Avatar { get; set; }
Property Value
Type | Description |
---|---|
String |
Discriminator
The user's 4-digit discord-tag
Declaration
[JsonPropertyName("discriminator")]
public string Discriminator { get; set; }
Property Value
Type | Description |
---|---|
String |
The user's email.
Declaration
[JsonPropertyName("email")]
public string Email { get; set; }
Property Value
Type | Description |
---|---|
String |
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> |
Id
The user's id.
Declaration
[JsonPropertyName("id")]
public ulong Id { get; set; }
Property Value
Type | Description |
---|---|
System.UInt64 |
IsBot
Whether the user belongs to an OAuth2 application.
Declaration
[JsonPropertyName("bot")]
public bool? IsBot { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<Boolean> |
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> |
Locale
The user's chosen language option.
Declaration
[JsonPropertyName("locale")]
public string Locale { get; set; }
Property Value
Type | Description |
---|---|
String |
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> |
PrivateFlags
The private flags on a user's account.
Declaration
[JsonPropertyName("flags")]
public DiscordUserFlags? PrivateFlags { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<DiscordUserFlags> |
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> |
Username
The user's username, not unique across the platform.
Declaration
[JsonPropertyName("username")]
public string Username { get; set; }
Property Value
Type | Description |
---|---|
String |
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> |