Catalogger.NET/Catalogger.Backend/Bot/Responders/Guilds/AuditLogResponder.cs

22 lines
724 B
C#
Raw Normal View History

2024-09-02 17:00:33 +02:00
using Catalogger.Backend.Cache.InMemoryCache;
using Newtonsoft.Json;
2024-09-02 17:00:33 +02:00
using Remora.Discord.API.Abstractions.Gateway.Events;
using Remora.Discord.Gateway.Responders;
using Remora.Results;
namespace Catalogger.Backend.Bot.Responders.Guilds;
2024-10-09 17:35:11 +02:00
public class AuditLogResponder(AuditLogCache auditLogCache, ILogger logger)
: IResponder<IGuildAuditLogEntryCreate>
2024-09-02 17:00:33 +02:00
{
private readonly ILogger _logger = logger.ForContext<AuditLogResponder>();
2024-10-09 17:35:11 +02:00
2024-09-02 17:00:33 +02:00
public Task<Result> RespondAsync(IGuildAuditLogEntryCreate evt, CancellationToken ct = default)
{
_logger.Debug("type: {ActionType}", evt.ActionType);
_logger.Debug("{Id}, {Reason}", evt.ID, evt.Reason);
2024-10-09 17:35:11 +02:00
2024-09-02 17:00:33 +02:00
throw new NotImplementedException();
}
2024-10-09 17:35:11 +02:00
}