v2

latestOpenAPI 3.0.0AGPLv32026-07-26125148364.7 KB
Messaging

Fetch Message

Retrieves a message by its id.

get/channels/{target}/messages/{msg}

Path parameters

targetstring required
msgstring required

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"
}