Skip to main content

CreateMessageOptions

Documentation


Documentation / @discordeno/types / CreateMessageOptions

Interface: CreateMessageOptions

Defined in: discordeno/message.ts:74

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

Properties

allowedMentions?

optional allowedMentions?: AllowedMentions

Defined in: discordeno/message.ts:84

Allowed mentions for the message


attachments?

optional attachments?: Pick<DiscordAttachment, "id" | "description" | "filename">[]

Defined in: discordeno/message.ts:94

Attachment objects with filename and description


components?

optional components?: MessageComponents

Defined in: discordeno/message.ts:88

The components you would like to have sent in this message


content?

optional content?: string

Defined in: discordeno/message.ts:76

The message contents (up to 2000 characters)


embeds?

optional embeds?: object[]

Defined in: discordeno/message.ts:82

Embedded rich content (up to 6000 characters)

author?

optional author?: object

author.iconUrl?

optional iconUrl?: string

author.name

name: string

author.proxyIconUrl?

optional proxyIconUrl?: string

author.url?

optional url?: string

color?

optional color?: number

description?

optional description?: string

fields?

optional fields?: object[]

optional footer?: object

footer.iconUrl?

optional iconUrl?: string

footer.proxyIconUrl?

optional proxyIconUrl?: string

footer.text

text: string

image?

optional image?: object

image.height?

optional height?: number

image.proxyUrl?

optional proxyUrl?: string

image.url

url: string

image.width?

optional width?: number

provider?

optional provider?: object

provider.name?

optional name?: string

provider.url?

optional url?: string

thumbnail?

optional thumbnail?: object

thumbnail.height?

optional height?: number

thumbnail.proxyUrl?

optional proxyUrl?: string

thumbnail.url

url: string

thumbnail.width?

optional width?: number

timestamp?

optional timestamp?: string

title?

optional title?: string

type?

optional type?: EmbedTypes

url?

optional url?: string

video?

optional video?: object

video.height?

optional height?: number

video.proxyUrl?

optional proxyUrl?: string

video.url?

optional url?: string

video.width?

optional width?: number


enforceNonce?

optional enforceNonce?: boolean

Defined in: discordeno/message.ts:105

If true and nonce is present, it will be checked for uniqueness in the past few minutes. If another message was created by the same author with the same nonce, that message will be returned and no new message will be created.


files?

optional files?: FileContent[]

Defined in: discordeno/message.ts:92

The contents of the files being sent


flags?

readonly optional flags?: number

Defined in: discordeno/message.ts:103

Message flags combined as a bitfield

Only SUPPRESS_EMBEDS, SUPPRESS_NOTIFICATIONS, IS_VOICE_MESSAGE, and IS_COMPONENTS_V2 can be set

See

MessageFlags


messageReference?

optional messageReference?: DiscordenoMessageReference

Defined in: discordeno/message.ts:86

Include to make your message a reply or a forward


nonce?

optional nonce?: string | number

Defined in: discordeno/message.ts:78

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


poll?

optional poll?: CreatePoll

Defined in: discordeno/message.ts:107

A poll object


stickerIds?

optional stickerIds?: BigString[]

Defined in: discordeno/message.ts:90

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


tts?

optional tts?: boolean

Defined in: discordeno/message.ts:80

true if this is a TTS message