64 lines
1.6 KiB
C#
64 lines
1.6 KiB
C#
using Newtonsoft.Json;
|
|
|
|
namespace Maki.Structures.Users
|
|
{
|
|
/// <summary>
|
|
/// Discord API User structure
|
|
/// </summary>
|
|
internal struct User
|
|
{
|
|
/// <summary>
|
|
/// the user's id
|
|
/// </summary>
|
|
[JsonProperty("id")]
|
|
public ulong Id;
|
|
|
|
/// <summary>
|
|
/// Guild ID, not always populated.
|
|
/// </summary>
|
|
[JsonProperty("guild_id")]
|
|
public ulong? GuildId;
|
|
|
|
/// <summary>
|
|
/// the user's username, not unique across the platform
|
|
/// </summary>
|
|
[JsonProperty("username")]
|
|
public string Username;
|
|
|
|
/// <summary>
|
|
/// the user's 4-digit discord-tag
|
|
/// </summary>
|
|
[JsonProperty("discriminator")]
|
|
public ushort? Tag;
|
|
|
|
/// <summary>
|
|
/// the user's avatar hash
|
|
/// </summary>
|
|
[JsonProperty("avatar")]
|
|
public string AvatarHash;
|
|
|
|
/// <summary>
|
|
/// whether the user belongs to an OAuth2 application
|
|
/// </summary>
|
|
[JsonProperty("bot")]
|
|
public bool IsBot;
|
|
|
|
/// <summary>
|
|
/// whether the user has two factor enabled on their account
|
|
/// </summary>
|
|
[JsonProperty("mfa_enabled")]
|
|
public bool HasMFA;
|
|
|
|
/// <summary>
|
|
/// whether the email on this account has been verified
|
|
/// </summary>
|
|
[JsonProperty("verified")]
|
|
public bool IsVerified;
|
|
|
|
/// <summary>
|
|
/// the user's email
|
|
/// </summary>
|
|
[JsonProperty("email")]
|
|
public string EMail;
|
|
}
|
|
}
|