Skip to main content

DiscordCreateMessage

@discordeno/bot


Documentation / @discordeno/bot / DiscordCreateMessage

Interface: DiscordCreateMessage

Defined in: packages/types/dist/types/discord.d.ts:3186

Properties

allowed_mentions?

optional allowed_mentions: DiscordAllowedMentions

Defined in: packages/types/dist/types/discord.d.ts:3196

Allowed mentions for the message


components?

optional components: DiscordMessageComponents

Defined in: packages/types/dist/types/discord.d.ts:3212

The components you would like to have sent in this message


content?

optional content: string

Defined in: packages/types/dist/types/discord.d.ts:3188

The message contents (up to 2000 characters)


embeds?

optional embeds: DiscordEmbed[]

Defined in: packages/types/dist/types/discord.d.ts:3194

Embedded rich content (up to 6000 characters)


message_reference?

optional message_reference: object

Defined in: packages/types/dist/types/discord.d.ts:3198

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.d.ts:3190

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.d.ts:3214

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.d.ts:3192

true if this is a TTS message