Skip to content

MessageOptions

MessageOptions = object

Defined in: utils/message.ts:9

What a message holds besides its text.

optional allowedMentions?: Schemas["MessageAllowedMentionsRequest"]

Defined in: utils/message.ts:20

Who the message pings. By default it pings nobody, even for @everyone or <@id> in the text. Pass { users: [id] } or { parse: ['roles'] } to ping.


optional buttons?: Button[]

Defined in: utils/message.ts:11

Buttons, five to a row. Pass [] to remove the buttons of the message.


optional embeds?: Schemas["RichEmbed"][]

Defined in: utils/message.ts:15

Embeds, as in the Discord API, such as { title, description }.


optional files?: Upload[]

Defined in: utils/message.ts:22

Files to attach.


optional selects?: SelectMenu[]

Defined in: utils/message.ts:13

Select menus made with select(), one to a row, above the buttons.