2024-09-03 00:07:12 +02:00
|
|
|
using System.Text.Json.Serialization;
|
|
|
|
|
|
|
|
namespace Foxcord.Models;
|
|
|
|
|
2024-09-03 02:11:11 +02:00
|
|
|
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; }
|
|
|
|
}
|