include vanity and colors
This commit is contained in:
@@ -1,9 +1,16 @@
|
||||
using MessagePack;
|
||||
using MessagePack;
|
||||
|
||||
namespace LightlessSync.API.Data;
|
||||
|
||||
[MessagePackObject(keyAsPropertyName: true)]
|
||||
public record UserData(string UID, string? Alias = null, bool IsAdmin = false, bool IsModerator = false)
|
||||
public record UserData(
|
||||
string UID,
|
||||
string? Alias = null,
|
||||
bool IsAdmin = false,
|
||||
bool IsModerator = false,
|
||||
bool HasVanity = false,
|
||||
string? TextColorHex = "",
|
||||
string? TextGlowColorHex = "")
|
||||
{
|
||||
[IgnoreMember]
|
||||
public string AliasOrUID => string.IsNullOrWhiteSpace(Alias) ? UID : Alias;
|
||||
|
||||
Reference in New Issue
Block a user