v2

latestOpenAPI 3.0.0AGPLv32026-07-26125148364.7 KB
Webhooks

Edits a webhook message

Edits a message sent by a webhook

patch/webhooks/{webhook_id}/{token}/{message_id}

Path parameters

webhook_idstring required
tokenstring required
message_idstring required

Request body

contentstring nullable

New message content

Response

_idstring required

Unique Id

noncestring nullable

Unique value generated by client sending this message

channelstring required

Id of the channel this message was sent in

authorstring required

Id of the user or webhook that sent this message

contentstring nullable

Message content

editedstring date-time

ISO8601 formatted timestamp

mentionsstring[] nullable

Array of user ids mentioned in this message

role_mentionsstring[] nullable

Array of role ids mentioned in this message

repliesstring[] nullable

Array of message ids this message is replying to

reactionsobject

Hashmap of emoji IDs to array of user IDs

pinnedboolean nullable

Whether or not the message in pinned

Example response

{
  "member": {
    "joined_at": "1970-01-01T00:00:00Z",
    "timeout": "1970-01-01T00:00:00Z"
  },
  "system": {
    "finished_at": "1970-01-01T00:00:00Z"
  },
  "edited": "1970-01-01T00:00:00Z"
}