MessageEditOptions
MessageEditOptions =
string|EmbedBuilder| {allowedMentions?:AllowedMentions;content?:string;embeds?: (EmbedBuilder|EmbedData)[] |null;mentions?:MentionsInput; }
Defined in: zaun/js/index.d.ts:629
New text, an embed, or { content?, embeds?, mentions?, allowedMentions? }: text not
given stays; embeds replaces them all ([] removes them) and may show only attachments
the message has.
Union Members
Section titled “Union Members”string
Type Literal
Section titled “Type Literal”{ allowedMentions?: AllowedMentions; content?: string; embeds?: (EmbedBuilder | EmbedData)[] | null; mentions?: MentionsInput; }
allowedMentions?
Section titled “allowedMentions?”
optionalallowedMentions?:AllowedMentions
As send’s, applied to the text the message is left with (the new content, or
its own).
content?
Section titled “content?”
optionalcontent?:string
embeds?
Section titled “embeds?”
optionalembeds?: (EmbedBuilder|EmbedData)[] |null
mentions?
Section titled “mentions?”
optionalmentions?:MentionsInput
As send’s. With neither this nor allowedMentions the message keeps its mentions
(the edit sends none, and the host leaves them). With either, the ones named replace
them all: {} or nothing the content shows clears them, @everyone too. Naming
anyone needs SEND_MESSAGES and counts against the mentions rate limit
(RATE_LIMITED). zaun-host 0.4.0 or newer; an older host ignores it.