Skip to main content
Module

x/discord_api_types/v9.ts>RESTPatchAPIChannelMessageJSONBody

Up to date Discord API Typings, versioned by the API version
Go to Latest
interface RESTPatchAPIChannelMessageJSONBody
import { type RESTPatchAPIChannelMessageJSONBody } from "https://deno.land/x/discord_api_types@0.37.82/v9.ts";

Properties

optional
content: string | null | undefined

The new message contents (up to 2000 characters)

optional
embeds: APIEmbed[] | null | undefined

Embedded rich content (up to 6000 characters)

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

optional
deprecated
embed: APIEmbed | null | undefined
optional
flags: MessageFlags | null | undefined

Edit the flags of a message (only SUPPRESS_EMBEDS can currently be set/unset)

When specifying flags, ensure to include all previously set flags/bits in addition to ones that you are modifying

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

optional
allowed_mentions: APIAllowedMentions | null | undefined
optional
attachments: RESTAPIAttachment[] | undefined

Attached files to keep

Starting with API v10, the attachments array must contain all attachments that should be present after edit, including retained and new attachments provided in the request body.

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

optional
components: APIActionRowComponent<APIMessageActionRowComponent>[] | null | undefined