>>

Edit Message

This route requires a valid Authorization header.

PATCH/channels/<channel_id>/messages/<message_id>

>>

Path Params

NameType
channel_idNumber
message_idNumber
>>

Request Body

A JSON MessageEdit

FieldTypeDescription
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

FieldTypeDescription
idNumberThe ID of the message.
authorUserThe message’s author.
contentString?The message’s content.
reference?MessageThe message referenced by this message.
channelSphereChannelThe channel in which the message is sent.
attachmentsArray of AttachmentsThe attachments of this message.
embedsArray of EmbedsThe embeds of this message.
reactionsArray of ReactionsThe reactions of this message.
_disguise?MessageDisguise