fix: ignored channels should also apply to ChannelUpdate
This commit is contained in:
parent
c28f987240
commit
4b74005110
1 changed files with 8 additions and 2 deletions
|
|
@ -179,11 +179,17 @@ public class ChannelUpdateResponder(
|
|||
// If that happens, there will be no embed fields, so just check for that
|
||||
if (builder.Fields.Count == 0)
|
||||
return Result.Success;
|
||||
webhookExecutor.QueueLog(
|
||||
|
||||
var logChannel = webhookExecutor.GetLogChannel(
|
||||
guildConfig,
|
||||
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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue