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 SourceAvatar
The user's avatar hash.
Declaration
string Avatar { get; set; }
Property Value
Type | Description |
---|---|
String |
Discriminator
The user's 4-digit discord-tag
Declaration
string Discriminator { get; set; }
Property Value
Type | Description |
---|---|
String |
The user's email.
Declaration
string Email { get; set; }
Property Value
Type | Description |
---|---|
String |
HasMfaEnabled
Whether the user has two factor enabled on their account.
Declaration
bool? HasMfaEnabled { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<Boolean> |
Id
The user's id.
Declaration
ulong Id { get; set; }
Property Value
Type | Description |
---|---|
System.UInt64 |
IsBot
Whether the user belongs to an OAuth2 application.
Declaration
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
bool? IsSystemUser { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<Boolean> |
Locale
The user's chosen language option.
Declaration
string Locale { get; set; }
Property Value
Type | Description |
---|---|
String |
PremiumType
The type of Nitro subscription on a user's account.
Declaration
DiscordPremiumType? PremiumType { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<DiscordPremiumType> |
PrivateFlags
The private flags on a user's account.
Declaration
DiscordUserFlags? PrivateFlags { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<DiscordUserFlags> |
PublicFlags
The public flags on a user's account.
Declaration
DiscordUserFlags? PublicFlags { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<DiscordUserFlags> |
Username
The user's username, not unique across the platform.
Declaration
string Username { get; set; }
Property Value
Type | Description |
---|---|
String |
Verified
Whether the email on this account has been verified.
Declaration
bool? Verified { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<Boolean> |
Methods
| Improve this Doc View SourceToDataModel()
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. |