PluralKit/PluralKit.Bot/Handlers/IEventHandler.cs
2020-11-15 13:53:31 +01:00

15 lines
316 B
C#

using System.Threading.Tasks;
using DSharpPlus;
using DSharpPlus.Entities;
using DSharpPlus.EventArgs;
namespace PluralKit.Bot
{
public interface IEventHandler<in T> where T: DiscordEventArgs
{
Task Handle(DiscordClient shard, T evt);
DiscordChannel ErrorChannelFor(T evt) => null;
}
}