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