SendMessageOptions

interface SendMessageOptions

Message fields accepted by send and reply methods.

exported from lib.weeble.d

Properties

Property

Type

Description

allowedMentions?

AllowedMentions

Mention parsing rules for this message.

attachments?

Attachment[]

Existing attachments to keep or include.

components?

Component[]

Components to include with the message.

content?

string

Message content.

embeds?

EmbedLike[]

Embeds to include with the message.

files?

AttachmentInput[]

New files to upload.

flags?

number

Discord bitfield flags. Set IS_COMPONENTS_V2 for Components V2 layouts; Discord then rejects content and embeds , and the flag cannot be removed later.

poll?

PollCreateOptions

Poll to create with the message.

reply?

MessageReference

Message reference used to create a reply.

stickerIds?

string[]

Sticker IDs to attach to the message.

tts?

boolean

Whether to send the message using text-to-speech.