MessageOptions
Defined in: sdk/js/src/message.ts:13
A message to send.
Properties
Section titled “Properties”attachments?
Section titled “attachments?”
optionalattachments?:string[]
Defined in: sdk/js/src/message.ts:18
Attachment ids from bot.messages.upload (or files uploaded for you by send).
components?
Section titled “components?”
optionalcomponents?:TopLevelComponent[]
Defined in: sdk/js/src/message.ts:16
componentsV2?
Section titled “componentsV2?”
optionalcomponentsV2?:boolean
Defined in: sdk/js/src/message.ts:40
Lay the message out with Components V2 (content and embeds must be empty). Set automatically when a component other than an action row is used.
content?
Section titled “content?”
optionalcontent?:string
Defined in: sdk/js/src/message.ts:14
embeds?
Section titled “embeds?”
optionalembeds?: (EmbedBuilder|EmbedData)[]
Defined in: sdk/js/src/message.ts:15
ephemeral?
Section titled “ephemeral?”
optionalephemeral?:boolean
Defined in: sdk/js/src/message.ts:31
Only the invoker sees it (interaction replies and follow-ups only).
mentions?
Section titled “mentions?”
optionalmentions?:object
Defined in: sdk/js/src/message.ts:24
Who is notified (each id once; ≤ 50 members, ≤ 20 roles). Zaun names mentions explicitly:
the content only shows them (userMention(id), roleMention(id)). On an edit, absent
leaves the mentions as they were, and {} clears them.
everyone?
Section titled “everyone?”
optionaleveryone?:boolean
members?
Section titled “members?”
optionalmembers?:string[]
roles?
Section titled “roles?”
optionalroles?:string[]
mentionsFromContent?
Section titled “mentionsFromContent?”
optionalmentionsFromContent?:boolean
Defined in: sdk/js/src/message.ts:29
Also notify whoever content shows (<@id>, <@&id>, @everyone; see
parseMentions). Only for text the bot wrote, never for text a member gave it.
silent?
Section titled “silent?”
optionalsilent?:boolean
Defined in: sdk/js/src/message.ts:33
Mentions do not notify.
suppressEmbeds?
Section titled “suppressEmbeds?”
optionalsuppressEmbeds?:boolean
Defined in: sdk/js/src/message.ts:35
Embeds are not shown.