we have to do this because discord doesn't notify us when a timeout ends naturally, only when a moderator removes it early.
12 lines
293 B
C#
12 lines
293 B
C#
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; }
|
|
}
|