diff --git a/extensions/discord/src/monitor/allow-list.ts b/extensions/discord/src/monitor/allow-list.ts index 8a955e74337..a9c7e6878b7 100644 --- a/extensions/discord/src/monitor/allow-list.ts +++ b/extensions/discord/src/monitor/allow-list.ts @@ -60,9 +60,9 @@ export function normalizeDiscordAllowList(raw: string[] | undefined, prefixes: s } const ids = new Set(); const names = new Set(); - const allowAll = raw.some((entry) => (normalizeOptionalString(String(entry)) ?? "") === "*"); + const allowAll = raw.some((entry) => (normalizeOptionalString(entry) ?? "") === "*"); for (const entry of raw) { - const text = normalizeOptionalString(String(entry)) ?? ""; + const text = normalizeOptionalString(entry) ?? ""; if (!text || text === "*") { continue; } @@ -564,7 +564,7 @@ export function resolveGroupDmAllow(params: { if (!channels || channels.length === 0) { return true; } - const allowList = new Set(channels.map((entry) => normalizeDiscordSlug(String(entry)))); + const allowList = new Set(channels.map((entry) => normalizeDiscordSlug(entry))); const candidates = [ normalizeDiscordSlug(channelId), channelSlug,