PluralKit/PluralKit.Bot/Handlers/IEventHandler.cs

10 lines
208 B
C#

using Myriad.Gateway;
namespace PluralKit.Bot;
public interface IEventHandler<in T> where T : IGatewayEvent
{
Task Handle(int shardId, T evt);
ulong? ErrorChannelFor(T evt, ulong userId) => null;
}