Archived
1
0
Fork 0
This repository has been archived on 2024-05-21. You can view files and clone it, but cannot push or open issues or pull requests.
maki/Maki/Structures/Users/User.cs
2017-05-14 14:02:51 +02:00

65 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;
}
}