Skip to content

MessageEditOptions

typedef · Source

Options that can be passed into Message#edit. Type: Object

Properties

content

nullable · optional

content: string

Content to be edited

embeds

optional

embeds: Array<MessageEmbed> | Array<APIEmbed>

Embeds to be added/edited

allowedMentions

optional

allowedMentions: MessageMentionOptions

Which mentions should be parsed from the message content

flags

optional

flags: MessageFlags

Which flags to set for the message. Only SUPPRESS_EMBEDS can be edited.

attachments

optional

attachments: Array<MessageAttachment>

An array of attachments to keep, all attachments will be kept if omitted

files

optional

files: Array<FileOptions> | Array<BufferResolvable> | Array<MessageAttachment>

Files to add to the message

components

optional

components: Array<MessageActionRow> | Array<MessageActionRowOptions>

Action rows containing interactive components for the message (buttons, select menus)

Unofficial software. Not affiliated with or supported by Discord.