2020-05-01 23:52:52 +00:00
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
2020-12-22 12:15:26 +00:00
|
|
|
using Myriad.Gateway;
|
2020-05-01 23:52:52 +00:00
|
|
|
|
|
|
|
namespace PluralKit.Bot
|
|
|
|
{
|
2021-08-27 15:03:47 +00:00
|
|
|
public interface IEventHandler<in T> where T : IGatewayEvent
|
2020-05-01 23:52:52 +00:00
|
|
|
{
|
2020-12-22 12:15:26 +00:00
|
|
|
Task Handle(Shard shard, T evt);
|
2020-05-01 23:52:52 +00:00
|
|
|
|
2020-12-22 12:15:26 +00:00
|
|
|
ulong? ErrorChannelFor(T evt) => null;
|
2020-05-01 23:52:52 +00:00
|
|
|
}
|
|
|
|
}
|