PLEXICHATNarrative Docs

Reactions

Guides, route-group overviews, and live schema entry points for the Plexichat backend.

REST http://api.plexichat.com/api/v1Gateway ws://api.plexichat.com/gatewayVersion a.1.0-49

Reactions API

Endpoints for managing message reactions.

PUT /channels/{channel_id}/messages/{message_id}/reactions/{emoji}

Add a reaction to a message.

Headers


Authorization: Bearer <token>

Path Parameters

ParameterTypeDescription
channel_idstringChannel's snowflake ID
message_idstringMessage's snowflake ID
emojistringEmoji (Unicode or custom ID)

Response (200 OK)


{
  "success": true
}

Error Responses

StatusCodeDescription
400Invalid emojiEmoji not recognized
400Reaction limitToo many reactions on message
403Permission deniedNo add reactions permission
404Message not foundMessage doesn't exist

DELETE /channels/{channel_id}/messages/{message_id}/reactions/{emoji}

Remove your reaction from a message.

Headers


Authorization: Bearer <token>

Response (200 OK)


{
  "success": true
}

The endpoint returns a successful response regardless of whether the reaction previously existed, ensuring idempotent behavior for reaction removal operations.

GET /channels/{channel_id}/messages/{message_id}/reactions

Get all reactions on a message.

Headers


Authorization: Bearer <token>

Response (200 OK)


[
  {
    "emoji": ":thumbsup:",
    "count": 5,
    "me": true
  },
  {
    "emoji": ":heart:",
    "count": 3,
    "me": false
  }
]

Error Responses

StatusCodeDescription
400Invalid message IDID format invalid
404Message not foundMessage doesn't exist

GET /channels/{channel_id}/messages/{message_id}/reactions/{emoji}

Get users who reacted with a specific emoji.

Headers


Authorization: Bearer <token>

Query Parameters

ParameterTypeDefaultConstraintsDescription
limitint501-100Max users to return
afterstring-Snowflake IDGet users after this ID

Response (200 OK)


[
  {
    "user_id": "123456789012345678",
    "reacted_at": 1704067200
  },
  {
    "user_id": "234567890123456789",
    "reacted_at": 1704067300
  }
]

Error Responses

StatusCodeDescription
400Invalid message IDID format invalid
404Message not foundMessage doesn't exist

Reaction Object


{
  "emoji": ":thumbsup:",
  "count": 5,
  "me": true
}
FieldTypeDescription
emojistringEmoji identifier
countintNumber of users who reacted
meboolWhether current user reacted

Reaction User Object


{
  "user_id": "123456789012345678",
  "reacted_at": 1704067200
}
FieldTypeDescription
user_idstringUser's snowflake ID
reacted_atintUnix timestamp of reaction

Emoji Format

Reactions support:

  • Unicode emoji: :thumbsup:, :heart:, :tada:
  • Custom emoji: emoji_id (snowflake ID)