PluralKit/PluralKit.Bot/Handlers/MessageDeleted.cs

31 lines
731 B
C#
Raw Normal View History

using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using DSharpPlus.EventArgs;
using Sentry;
namespace PluralKit.Bot
{
// Double duty :)
public class MessageDeleted: IEventHandler<MessageDeleteEventArgs>, IEventHandler<MessageBulkDeleteEventArgs>
{
private readonly ProxyService _proxy;
2020-05-02 14:00:43 +00:00
public MessageDeleted(ProxyService proxy)
{
_proxy = proxy;
}
public Task Handle(MessageDeleteEventArgs evt)
{
return _proxy.HandleMessageDeletedAsync(evt);
}
public Task Handle(MessageBulkDeleteEventArgs evt)
{
return _proxy.HandleMessageBulkDeleteAsync(evt);
}
}
}