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