Skip to main content

DiscordCreateMessage

@discordeno/botDocs


Documentation / @discordeno/bot / DiscordCreateMessage

Interface: DiscordCreateMessage

Properties

allowed_mentions?

optional allowed_mentions: DiscordAllowedMentions

Allowed mentions for the message

Defined in

packages/types/dist/types/discord.d.ts:3193


components?

optional components: DiscordMessageComponents

The components you would like to have sent in this message

Defined in

packages/types/dist/types/discord.d.ts:3209


content?

optional content: string

The message contents (up to 2000 characters)

Defined in

packages/types/dist/types/discord.d.ts:3185


embeds?

optional embeds: DiscordEmbed[]

Embedded rich content (up to 6000 characters)

Defined in

packages/types/dist/types/discord.d.ts:3191


message_reference?

optional message_reference: object

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

Defined in

packages/types/dist/types/discord.d.ts:3195


nonce?

optional nonce: string | number

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

Defined in

packages/types/dist/types/discord.d.ts:3187


stickerIds?

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

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

Defined in

packages/types/dist/types/discord.d.ts:3211


tts?

optional tts: boolean

true if this is a TTS message

Defined in

packages/types/dist/types/discord.d.ts:3189