Skip to main content
Module

x/discord_api_types/v8.ts>RESTPostAPIChannelMessageJSONBody

Up to date Discord API Typings, versioned by the API version
Go to Latest
interface RESTPostAPIChannelMessageJSONBody
Deprecated
Deprecated

API and gateway v8 are deprecated and the types will not receive further updates, please update to v10.

import { type RESTPostAPIChannelMessageJSONBody } from "https://deno.land/x/discord_api_types@0.37.82/v8.ts";

Properties

optional
content: string | undefined

The message contents (up to 2000 characters)

optional
nonce: number | string | undefined

A nonce that can be used for optimistic message sending

optional
tts: boolean | undefined

true if this is a TTS message

optional
embeds: APIEmbed[] | undefined

Embedded rich content (up to 6000 characters)

See https://discord.com/developers/docs/resources/channel#embed-object

optional
deprecated
embed: APIEmbed | undefined
optional
allowed_mentions: APIAllowedMentions | undefined
optional
message_reference: APIMessageReferenceSend | undefined
optional
sticker_ids:

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

See https://discord.com/developers/docs/resources/sticker#sticker-object

optional
attachments: (Partial<Pick<APIAttachment, "filename">> & Pick<APIAttachment, "description" | "id">)[] | undefined

Attachment objects with filename and description

optional
flags: MessageFlags | undefined

Message flags combined as a bitfield