PluralKit/PluralKit.Bot/Handlers/IEventHandler.cs

13 lines
247 B
C#
Raw Normal View History

using System.Threading.Tasks;
2020-12-22 12:15:26 +00:00
using Myriad.Gateway;
namespace PluralKit.Bot
{
2021-08-27 15:03:47 +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;
}
}