2020-12-22 12:15:26 +00:00
|
|
|
using Myriad.Gateway;
|
2020-05-01 23:52:52 +00:00
|
|
|
|
2021-11-27 02:10:56 +00:00
|
|
|
namespace PluralKit.Bot;
|
|
|
|
|
|
|
|
public interface IEventHandler<in T> where T : IGatewayEvent
|
2020-05-01 23:52:52 +00:00
|
|
|
{
|
2022-01-14 23:39:03 +00:00
|
|
|
Task Handle(int shardId, T evt);
|
2020-05-01 23:52:52 +00:00
|
|
|
|
2022-01-14 20:05:46 +00:00
|
|
|
ulong? ErrorChannelFor(T evt, ulong userId) => null;
|
2020-05-01 23:52:52 +00:00
|
|
|
}
|