Unban work #1

Merged
defnotken merged 4 commits from unbanbydiscord into main 2025-09-05 22:14:27 +00:00
2 changed files with 14 additions and 0 deletions
Showing only changes of commit d73dea8706 - Show all commits

View File

@@ -0,0 +1,5 @@
using MessagePack;
namespace LightlessSync.API.Dto.User;
[MessagePackObject(keyAsPropertyName: true)]
public record BanRequest(string UID);

View File

@@ -0,0 +1,9 @@
using MessagePack;
namespace LightlessSync.API.Dto.User;
[MessagePackObject(keyAsPropertyName: true)]
public record UnbanRequest(string? Uid, string? DiscordId)
{
public bool IsValid => !string.IsNullOrEmpty(Uid) || !string.IsNullOrEmpty(DiscordId);
}