mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-09 15:27:54 +00:00
Fix proxying in channels without message history + reduce proxy latency
This commit is contained in:
parent
1720a28af2
commit
4c17ee3d89
6 changed files with 35 additions and 36 deletions
|
|
@ -55,7 +55,7 @@ namespace PluralKit.Bot
|
|||
if (!DiscordUtils.IsValidGuildChannel(channel))
|
||||
return;
|
||||
var guild = _cache.GetGuild(channel.GuildId!.Value);
|
||||
var lastMessage = _lastMessageCache.GetLastMessage(evt.ChannelId);
|
||||
var lastMessage = _lastMessageCache.GetLastMessage(evt.ChannelId)?.Current;
|
||||
|
||||
// Only react to the last message in the channel
|
||||
if (lastMessage?.Id != evt.Id)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue