Interface

MessageSendOptions

Options for sending a message via channel/message helpers.

Properties

allowedMentions?: AllowedMentionsOptions

Who may be mentioned; see AllowedMentionsOptions.

attachments?: MessageAttachmentMeta[]

Attachment metadata aligned with uploaded `files` indices.

content?: string

Plain text body.

Embed payloads or EmbedBuilder instances.

favoriteMemeId?: string

Favorite meme id when sending a saved meme.

files?: MessageFileData[]

Local files or remote URLs to upload with the message.

flags?: number

Message flags bitfield.

Forward an existing message into this channel.

nonce?: string

Client-generated nonce for deduplication.

ping?: boolean

Shortcut for reply pings. `false` sets `allowedMentions.repliedUser` to false. Prefer explicit AllowedMentionsOptions when you need full control.

Reply to an existing message (sets message_reference).

stickerIds?: string[]

Sticker snowflakes to attach.

tts?: boolean

Text-to-speech flag.

uploadedAttachments?: RESTPostAPIMessageUploadedAttachment[]

Already-uploaded CDN attachments (skip multipart).