Refactor and simplify the main bot classes
This commit is contained in:
14
PluralKit.Bot/Handlers/IEventHandler.cs
Normal file
14
PluralKit.Bot/Handlers/IEventHandler.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using System.Threading.Tasks;
|
||||
|
||||
using DSharpPlus.Entities;
|
||||
using DSharpPlus.EventArgs;
|
||||
|
||||
namespace PluralKit.Bot
|
||||
{
|
||||
public interface IEventHandler<in T> where T: DiscordEventArgs
|
||||
{
|
||||
Task Handle(T evt);
|
||||
|
||||
DiscordChannel ErrorChannelFor(T evt) => null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user