mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 13:06:50 +00:00
Fix permission error on message edit handler
Signed-off-by: Ske <voltasalt@gmail.com>
This commit is contained in:
parent
65387bfea4
commit
aa2a234f8d
3 changed files with 48 additions and 26 deletions
|
|
@ -53,7 +53,7 @@ namespace PluralKit.Bot
|
|||
|
||||
private bool IsDuplicateMessage(Message msg) =>
|
||||
// We consider a message duplicate if it has the same ID as the previous message that hit the gateway
|
||||
_lastMessageCache.GetLastMessage(msg.ChannelId)?.mid == msg.Id;
|
||||
_lastMessageCache.GetLastMessage(msg.ChannelId)?.Id == msg.Id;
|
||||
|
||||
public async Task Handle(Shard shard, MessageCreateEvent evt)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue