Skip to main content

DiscordCreateMessage

@discordeno/bot


Documentation / @discordeno/bot / DiscordCreateMessage

Interface: DiscordCreateMessage

Defined in: packages/types/dist/types/discord/message.d.ts:482

https://discord.com/developers/docs/resources/message#create-message-jsonform-params

Properties

allowed_mentions?

optional allowed_mentions: DiscordAllowedMentions

Defined in: packages/types/dist/types/discord/message.d.ts:492

Allowed mentions for the message


components?

optional components: DiscordMessageComponents

Defined in: packages/types/dist/types/discord/message.d.ts:508

The components you would like to have sent in this message


content?

optional content: string

Defined in: packages/types/dist/types/discord/message.d.ts:484

The message contents (up to 2000 characters)


embeds?

optional embeds: DiscordEmbed[]

Defined in: packages/types/dist/types/discord/message.d.ts:490

Embedded rich content (up to 6000 characters)


message_reference?

optional message_reference: object

Defined in: packages/types/dist/types/discord/message.d.ts:494

Include to make your message a reply

channel_id?

optional channel_id: string

id of the originating message's channel Note: channel_id is optional when creating a reply, but will always be present when receiving an event/response that includes this data model.

fail_if_not_exists

fail_if_not_exists: boolean

When sending, whether to error if the referenced message doesn't exist instead of sending as a normal (non-reply) message, default true

guild_id?

optional guild_id: string

id of the originating message's guild

message_id?

optional message_id: string

id of the originating message


nonce?

optional nonce: string | number

Defined in: packages/types/dist/types/discord/message.d.ts:486

Can be used to verify a message was sent (up to 25 characters). Value will appear in the Message Create event.


stickerIds?

optional stickerIds: [string] | [string, string] | [string, string, string]

Defined in: packages/types/dist/types/discord/message.d.ts:510

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


tts?

optional tts: boolean

Defined in: packages/types/dist/types/discord/message.d.ts:488

true if this is a TTS message