2020-05-01 23:52:52 +00:00
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
2020-11-15 12:53:31 +00:00
|
|
|
using DSharpPlus;
|
2020-05-01 23:52:52 +00:00
|
|
|
using DSharpPlus.Entities;
|
|
|
|
using DSharpPlus.EventArgs;
|
|
|
|
|
|
|
|
namespace PluralKit.Bot
|
|
|
|
{
|
|
|
|
public interface IEventHandler<in T> where T: DiscordEventArgs
|
|
|
|
{
|
2020-11-15 12:53:31 +00:00
|
|
|
Task Handle(DiscordClient shard, T evt);
|
2020-05-01 23:52:52 +00:00
|
|
|
|
|
|
|
DiscordChannel ErrorChannelFor(T evt) => null;
|
|
|
|
}
|
|
|
|
}
|