fix: ignored channels should also apply to ChannelUpdate

This commit is contained in:
sam 2024-10-30 13:52:33 +01:00
parent c28f987240
commit 4b74005110
Signed by: sam
GPG key ID: 5F3C3C1B3166639D

View file

@ -179,11 +179,17 @@ public class ChannelUpdateResponder(
// If that happens, there will be no embed fields, so just check for that // If that happens, there will be no embed fields, so just check for that
if (builder.Fields.Count == 0) if (builder.Fields.Count == 0)
return Result.Success; return Result.Success;
webhookExecutor.QueueLog(
var logChannel = webhookExecutor.GetLogChannel(
guildConfig, guildConfig,
LogChannelType.ChannelUpdate, LogChannelType.ChannelUpdate,
builder.Build().GetOrThrow() channelId: evt.ID,
userId: null
); );
if (logChannel == null)
return Result.Success;
webhookExecutor.QueueLog(logChannel.Value, builder.Build().GetOrThrow());
return Result.Success; return Result.Success;
} }