foxcord/Foxcord/Models/User.cs

21 lines
763 B
C#
Raw Permalink Normal View History

2024-09-03 00:07:12 +02:00
using System.Text.Json.Serialization;
namespace Foxcord.Models;
public record User
2024-09-03 00:07:12 +02:00
{
public Snowflake Id { get; init; }
public required string Username { get; init; }
public required string Discriminator { get; init; }
[JsonIgnore] public string Tag => Discriminator != "0" ? $"{Username}#{Discriminator}" : Username;
public string? GlobalName { get; init; }
public string? Avatar { get; init; }
public string? Banner { get; init; }
public int? AccentColor { get; init; }
public string? Locale { get; init; }
public bool Bot { get; init; } = false;
public bool System { get; init; } = false;
public bool? MfaEnabled { get; init; }
public bool? Verified { get; init; }
public string? Email { get; init; }
}