Skip to main content
Version: Next

RESTPostAPIChannelMessageJSONBody

@deprecated

API and gateway v8 are deprecated and the types will not receive further updates, please update to v10.

Index

Properties

optionalallowed_mentions

allowed_mentions?: APIAllowedMentions

optionalattachments

attachments?: (Partial<Pick<APIAttachment, filename>> & Pick<APIAttachment, description | id>)[]

Attachment objects with filename and description

optionalcomponents

optionalcontent

content?: string

The message contents (up to 2000 characters)

optionalembed

embed?: APIEmbed

Embedded rich content

@deprecated

Use embeds instead

optionalembeds

embeds?: APIEmbed[]

Embedded rich content (up to 6000 characters)

optionalflags

flags?: MessageFlags

Message flags combined as a bitfield

optionalmessage_reference

message_reference?: APIMessageReferenceSend

optionalnonce

nonce?: string | number

A nonce that can be used for optimistic message sending

optionalsticker_ids

sticker_ids?: [string, string, string] | [string, string] | [string]

IDs of up to 3 stickers in the server to send in the message

optionaltts

tts?: boolean

true if this is a TTS message