mirror of
https://github.com/Elysola/WebHooker.git
synced 2026-11-21 01:23:40 +00:00
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:
1 parent
7cf507f654
commit
bfbdf3b159
3 files changed
+93
-8
No files matched your search
@@ -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[] };
|
||||
}
|
||||
Reference in new issue
Block a user