mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-10 07:47:53 +00:00
Refactor and simplify the main bot classes
This commit is contained in:
parent
7488ca459b
commit
999ea5f0b5
10 changed files with 482 additions and 377 deletions
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;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue