Skip to main content
Deno 2 is finally here 🎉️
Learn more
Extremely Popular
Go to Latest
interface CreateMessage
Re-export
import { type CreateMessage } from "https://deno.land/x/discordeno@17.2.0/template/beginner/deps.ts";

Properties

optional
content: string

The message contents (up to 2000 characters)

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.

optional
tts: boolean

true if this is a TTS message

optional
embeds: Embed[]

Embedded rich content (up to 6000 characters)

optional
allowedMentions: AllowedMentions

Allowed mentions for the message

optional
messageReference: { messageId?: BigString; channelId?: BigString; guildId?: BigString; failIfNotExists: boolean; }

Include to make your message a reply

optional
file: FileContent | FileContent[]

The contents of the file being sent

optional
components: MessageComponents

The components you would like to have sent in this message

optional
stickerIds: [bigint] | [bigint, bigint] | [bigint, bigint, bigint]

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