RESTPatchAPIChannelMessageJSONBody
Index
Properties
optionalallowed_mentions
Allowed mentions for the message
optionalattachments
Attached files to keep and their metadata. See Uploading Files
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.
optionalcomponents
The components to include with the message
optionalcontent
The new message contents (up to 2000 characters)
optionalembeds
Embedded rich content (up to 6000 characters)
optionalflags
Edit the flags of a message (SUPPRESS_EMBEDS and IS_COMPONENTS_V2 only)
The SUPPRESS_EMBEDS flag can be both set and unset, while the IS_COMPONENTS_V2 flag can only be set.
When the IS_COMPONENTS_V2 flag is set, any of the used content, embeds, sticker_ids, or poll fields
must have their values reset to empty. For content and poll this is null. For embeds and sticker_ids this is []
When specifying flags, ensure to include all previously set flags/bits in addition to ones that you are modifying
https://discord.com/developers/docs/resources/message#edit-message