2024-09-02 17:00:33 +02:00
|
|
|
using Catalogger.Backend.Cache.InMemoryCache;
|
|
|
|
|
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
|
|
|
{
|
2024-09-21 20:32:02 +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)
|
|
|
|
|
{
|
2024-09-21 20:32:02 +02:00
|
|
|
_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
|
|
|
}
|