Modbot Docs
APIAPI referenceDiscord

List Discord member messages

GET/api/discord/members/{id}/messages

Messages in the server in settings, newest first. A deleted message is returned with deletedAt set and an edited one with editedAt; text is the text as it reads now. Pass at with a message id instead of page to get the page that message is on, which is what a link to one message opens. Needs Read Discord messages.

Needs the ReadDiscordMessages permission.

AuthorizationBearer <token>

An API key, made on Settings, API keys. Every key starts with mbk_.

In: header

Path Parameters

id*string

Query Parameters

page?integer
Formatint32
pageSize?integer
Formatint32
at?string

Response Body

application/json

application/problem+json

application/problem+json

curl -X GET "https://example.com/api/discord/members/string/messages"
{  "messages": [    {      "messageId": "string",      "sentAt": "2019-08-24T14:15:22Z",      "channelId": "string",      "channelName": null,      "threadId": null,      "threadName": null,      "text": "string",      "attachments": [        {          "name": "string",          "type": null,          "size": null,          "url": null        }      ],      "embedCount": 0,      "replyToId": null,      "editedAt": null,      "deletedAt": null    }  ],  "total": 0,  "page": 0,  "pageSize": 0}

Modbot is not endorsed by or affiliated with VRChat Inc. or Discord Inc. VRChat is a trademark of VRChat Inc. Discord is a trademark of Discord Inc. SteamVR is a trademark of Valve Corporation. Windows is a trademark of Microsoft Corporation. Docker is a trademark of Docker, Inc. PostgreSQL is a trademark of the PostgreSQL Community Association of Canada. Railway is a trademark of Railway Corp. Other names are trademarks of their respective owners; see Legal. Modbot and its logo are trademarks of the Modbot project. Open source under AGPL-3.0.