Edit Message
This route requires a valid Authorization
header.
PATCH/channels/<channel_id>/messages/<message_id>
Path Params
Name | Type |
---|---|
channel_id | Number |
message_id | Number |
Request Body
A JSON MessageEdit
Field | Type | Description |
---|---|---|
content? | String? | The message’s updated content. The upper limit is the instance’s Instance Info message_limit . If this is set to be an empty string it will be considered to be null,Leading and trailing whitespace will be trimmed off the content. |
attachments? | Array of AttachmentCreates | |
embeds? | Array of CustomEmbeds |
Response
200Message
Field | Type | Description |
---|---|---|
id | Number | The ID of the message. |
author | User | The message’s author. |
content | String? | The message’s content. |
reference? | Message | The message referenced by this message. |
channel | SphereChannel | The channel in which the message is sent. |
attachments | Array of Attachments | The attachments of this message. |
embeds | Array of Embeds | The embeds of this message. |
reactions | Array of Reactions | The reactions of this message. |
_disguise? | MessageDisguise |