fix(discord): constrain embeds and role mentions

Respect combined embed and component limits as well as field caps.
Restrict allowed mentions to validated route roles so payload text
cannot notify everyone.
This commit is contained in:
翅膀 committed 2026-10-23 23:22:31 +08:00
1 parent 7cf507f654
commit bfbdf3b159
3 files changed
+93 -8

No files matched your search

+2
View File
@@ -365,4 +365,6 @@ export interface FormattedMessage {
custom_id?: string;
}>;
}>;
/** Which mentions in `content` may notify; set so only the route's roles ping. */
allowed_mentions?: { parse: string[]; roles?: string[] };
}