PluralKit/PluralKit.Bot/Handlers/IEventHandler.cs

10 lines
194 B
C#
Raw Normal View History

2020-12-22 12:15:26 +00:00
using Myriad.Gateway;
namespace PluralKit.Bot;
public interface IEventHandler<in T> where T : IGatewayEvent
{
Task Handle(Shard shard, T evt);
ulong? ErrorChannelFor(T evt) => null;
}