Refactor and simplify the main bot classes

This commit is contained in:
Ske
2020-05-02 01:52:52 +02:00
parent 7488ca459b
commit 999ea5f0b5
10 changed files with 482 additions and 377 deletions

View 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;
}
}