Get Discord member activity
/api/discord/members/{id}/metricsMessages and voice minutes per day, and joins and leaves, for one Discord member.
Needs the ViewProfile permission.
An API key, made on Settings, API keys. Every key starts with mbk_.
In: header
Path Parameters
Response Body
application/json
application/problem+json
application/problem+json
curl -X GET "https://example.com/api/discord/members/string/metrics"{ "userId": "string", "messagesPerDay": [ { "day": "2019-08-24", "value": 0.1 } ], "voiceMinutesPerDay": [ { "day": "2019-08-24", "value": 0.1 } ], "messagesAllTime": 0.1, "voiceMinutesAllTime": 0.1, "firstSeenAt": null, "joinedAt": null, "leftAt": null, "history": [ { "change": "string", "at": "2019-08-24T14:15:22Z", "before": null } ], "now": "2019-08-24T14:15:22Z"}List Discord member messages GET
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.
Get the Discord roles report GET
Every role in the Discord server but @everyone, with how many members hold it and what the report marks on it: `no-members`, `same-name` (another role has the same name), `same-permissions-and-colour` (another role has the same permissions and colour; roles with no colour and nothing beyond @everyone's permissions, and bot roles, are left out of this one) and `bot-role` (owned by a bot or an integration). Marked roles come first, the most marks first, then the fewest members, then Discord's order. Counts are null until the member list has been read. Read from what the bot already stores; nothing is asked of Discord and nothing is changed. Needs the `ViewAnalytics` permission.