PluralKit/PluralKit.Bot/Handlers/IEventHandler.cs

13 lines
246 B
C#
Raw Normal View History

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