feat: store timeouts in database and log them ending

we have to do this because discord doesn't notify us when a timeout
ends naturally, only when a moderator removes it early.
This commit is contained in:
sam 2024-11-05 22:22:12 +01:00
parent f0fcfd7bd3
commit e6d68338db
Signed by: sam
GPG key ID: 5F3C3C1B3166639D
7 changed files with 249 additions and 1 deletions

View file

@ -0,0 +1,12 @@
using NodaTime;
namespace Catalogger.Backend.Database.Models;
public class DiscordTimeout
{
public int Id { get; init; }
public ulong UserId { get; init; }
public ulong GuildId { get; init; }
public ulong? ModeratorId { get; init; }
public Instant Until { get; init; }
}