Skip to main content
Version: 0.37.81

RESTPatchAPIChannelMessageJSONBody

@deprecated

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

Index

Properties

optionalallowed_mentions

allowed_mentions?: null | APIAllowedMentions

optionalattachments

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

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

optionalcomponents

optionalcontent

content?: null | string

The new message contents (up to 2000 characters)

optionalembed

embed?: null | APIEmbed

Embedded rich content

@deprecated

Use embeds instead

optionalembeds

embeds?: null | APIEmbed[]

Embedded rich content (up to 6000 characters)

optionalflags

flags?: null | MessageFlags

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