2021-11-27 02:10:56 +00:00
|
|
|
namespace Myriad.Types;
|
2020-12-22 12:15:26 +00:00
|
|
|
|
2021-11-27 02:10:56 +00:00
|
|
|
public record User
|
2020-12-22 12:15:26 +00:00
|
|
|
{
|
2021-11-27 02:10:56 +00:00
|
|
|
[Flags]
|
|
|
|
public enum Flags
|
2020-12-22 12:15:26 +00:00
|
|
|
{
|
2021-11-27 02:10:56 +00:00
|
|
|
DiscordEmployee = 1 << 0,
|
|
|
|
PartneredServerOwner = 1 << 1,
|
|
|
|
HypeSquadEvents = 1 << 2,
|
|
|
|
BugHunterLevel1 = 1 << 3,
|
|
|
|
HouseBravery = 1 << 6,
|
|
|
|
HouseBrilliance = 1 << 7,
|
|
|
|
HouseBalance = 1 << 8,
|
|
|
|
EarlySupporter = 1 << 9,
|
|
|
|
TeamUser = 1 << 10,
|
|
|
|
System = 1 << 12,
|
|
|
|
BugHunterLevel2 = 1 << 14,
|
|
|
|
VerifiedBot = 1 << 16,
|
|
|
|
EarlyVerifiedBotDeveloper = 1 << 17
|
|
|
|
}
|
2020-12-22 12:15:26 +00:00
|
|
|
|
2021-11-27 02:10:56 +00:00
|
|
|
public ulong Id { get; init; }
|
|
|
|
public string Username { get; init; }
|
|
|
|
public string Discriminator { get; init; }
|
2023-06-28 01:55:21 +00:00
|
|
|
public string GlobalName { get; init; }
|
2021-11-27 02:10:56 +00:00
|
|
|
public string? Avatar { get; init; }
|
|
|
|
public bool Bot { get; init; }
|
|
|
|
public bool? System { get; init; }
|
2022-06-03 08:39:29 +00:00
|
|
|
// public Flags PublicFlags { get; init; }
|
2020-12-22 12:15:26 +00:00
|
|
|
|
2021-11-27 02:10:56 +00:00
|
|
|
public record Extra: User
|
|
|
|
{
|
2022-06-03 08:39:29 +00:00
|
|
|
// public GuildMemberPartial? Member { get; init; }
|
2020-12-22 12:15:26 +00:00
|
|
|
}
|
|
|
|
}
|