Skip to content

Messages

Nachrichten abrufen

http
GET /api/channels/:channelId/messages
Authorization: TOKEN

Query Parameter:

ParameterTypBeschreibung
limitnumberAnzahl (max. 50)
beforestringNachrichten vor dieser ID
afterstringNachrichten nach dieser ID

Nachricht senden

http
POST /api/channels/:channelId/messages
Authorization: TOKEN
Content-Type: application/json

{
  "content": "Hallo Welt!"
}

Response:

json
{
  "id": "123456789",
  "content": "Hallo Welt!",
  "createdAt": "2025-01-01T00:00:00.000Z",
  "author": {
    "id": "987654321",
    "username": "UkysBot"
  }
}

Nachricht bearbeiten

http
PATCH /api/channels/:channelId/messages/:messageId
Authorization: TOKEN
Content-Type: application/json

{
  "content": "Bearbeiteter Text"
}

Nachricht löschen

http
DELETE /api/channels/:channelId/messages/:messageId
Authorization: TOKEN

Reaktion hinzufügen

http
POST /api/channels/:channelId/messages/:messageId/reactions
Authorization: TOKEN
Content-Type: application/json

{
  "emoji": "👍"
}

Nexcord — Self-hosted Chat Platform