fix: harden Discord channel resolution (#33142) (thanks @thewilloftheshadow) (#33142)

This commit is contained in:
Shadow
2026-03-03 09:31:26 -06:00
committed by GitHub
parent 4abf398a17
commit ca307c3fdf
6 changed files with 284 additions and 40 deletions

View File

@@ -386,6 +386,7 @@ const PERMANENT_ERROR_PATTERNS: readonly RegExp[] = [
/chat_id is empty/i,
/recipient is not a valid/i,
/outbound not configured for channel/i,
/ambiguous discord recipient/i,
];
export function isPermanentDeliveryError(error: string): boolean {