Skip to content

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.

string


EmbedBuilder


{ allowedMentions?: AllowedMentions; content?: string; embeds?: (EmbedBuilder | EmbedData)[] | null; mentions?: MentionsInput; }

optional allowedMentions?: AllowedMentions

As send’s, applied to the text the message is left with (the new content, or its own).

optional content?: string

optional embeds?: (EmbedBuilder | EmbedData)[] | null

optional mentions?: 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.