mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
Initial commit, basic proxying working
This commit is contained in:
parent
c3f6becea4
commit
a6fbd869be
109 changed files with 3539 additions and 359 deletions
|
|
@ -5,13 +5,15 @@ using DSharpPlus.Entities;
|
|||
using DSharpPlus.EventArgs;
|
||||
using DSharpPlus.Exceptions;
|
||||
|
||||
using Myriad.Gateway;
|
||||
|
||||
using PluralKit.Core;
|
||||
|
||||
using Serilog;
|
||||
|
||||
namespace PluralKit.Bot
|
||||
{
|
||||
public class ReactionAdded: IEventHandler<MessageReactionAddEventArgs>
|
||||
public class ReactionAdded: IEventHandler<MessageReactionAddEvent>
|
||||
{
|
||||
private readonly IDatabase _db;
|
||||
private readonly ModelRepository _repo;
|
||||
|
|
@ -28,9 +30,9 @@ namespace PluralKit.Bot
|
|||
_logger = logger.ForContext<ReactionAdded>();
|
||||
}
|
||||
|
||||
public async Task Handle(DiscordClient shard, MessageReactionAddEventArgs evt)
|
||||
public async Task Handle(Shard shard, MessageReactionAddEvent evt)
|
||||
{
|
||||
await TryHandleProxyMessageReactions(shard, evt);
|
||||
// await TryHandleProxyMessageReactions(shard, evt);
|
||||
}
|
||||
|
||||
private async ValueTask TryHandleProxyMessageReactions(DiscordClient shard, MessageReactionAddEventArgs evt)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue