PluralKit/PluralKit.Bot/Handlers/IEventHandler.cs

15 lines
316 B
C#
Raw Normal View History

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