From 48e53e45dd582bc6a8d2fd9fe17d584b03e89e3f Mon Sep 17 00:00:00 2001 From: alyssa Date: Tue, 10 Dec 2024 05:35:32 +0900 Subject: [PATCH] fix(bot): use correct channel id for log channel lookup --- PluralKit.Bot/Services/LogChannelService.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PluralKit.Bot/Services/LogChannelService.cs b/PluralKit.Bot/Services/LogChannelService.cs index f7149e75..d7e5e452 100644 --- a/PluralKit.Bot/Services/LogChannelService.cs +++ b/PluralKit.Bot/Services/LogChannelService.cs @@ -63,12 +63,12 @@ public class LogChannelService return null; var guildId = proxiedMessage.Guild ?? trigger.GuildId.Value; - var rootChannel = await _cache.GetRootChannel(guildId, trigger.ChannelId); + var rootChannel = await _cache.GetRootChannel(guildId, proxiedMessage.Channel); // get log channel info from the database var guild = await _repo.GetGuild(guildId); var logChannelId = guild.LogChannel; - var isBlacklisted = guild.LogBlacklist.Any(x => x == trigger.ChannelId || x == rootChannel.Id); + var isBlacklisted = guild.LogBlacklist.Any(x => x == proxiedMessage.ChannelId || x == rootChannel.Id); // if (ctx.SystemId == null || // removed the above, there shouldn't be a way to get to this code path if you don't have a system registered