fix: ignore discord wildcard audit keys (#33125) (thanks @thewilloftheshadow) (#33125)

This commit is contained in:
Shadow
2026-03-03 09:28:30 -06:00
committed by GitHub
parent c8b45a4c5c
commit 8e2e4b2ed5
3 changed files with 57 additions and 0 deletions

View File

@@ -56,6 +56,11 @@ function listConfiguredGuildChannelKeys(
if (!channelId) {
continue;
}
// Skip wildcard keys (e.g. "*" meaning "all channels") — they are valid
// config but are not real channel IDs and should not be audited.
if (channelId === "*") {
continue;
}
if (!shouldAuditChannelConfig(value as DiscordGuildChannelConfig | undefined)) {
continue;
}