Get the Discord roles report
/api/discord/reports/rolesEvery 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.
An API key, made on Settings, API keys. Every key starts with mbk_.
In: header
Response Body
application/json
application/problem+json
application/problem+json
curl -X GET "https://example.com/api/discord/reports/roles"{ "guildId": null, "membersListedAt": null, "rolesReadAt": null, "roles": [ { "id": "string", "name": "string", "color": 0, "position": 0, "members": null, "flags": [ "string" ], "samePermissionsAndColourAs": [ "string" ] } ]}Get Discord member activity GET
Messages and voice minutes per day, and joins and leaves, for one Discord member. Needs the `ViewProfile` permission.
Get the Discord quiet channels list GET
The server's text, announcement and forum channels with when anybody last wrote in each (in the channel or any of its threads), quietest first: channels with no message at all, then the longest since the last message, then channels still being read back with nothing found yet, then channels the bot cannot read. `seenBy` (a role id, repeated for more) keeps the channels at least one of those roles can see, and `notSeenBy` the channels none of them can see: worked out from each role's server-wide permissions, @everyone's, and the channel's own overwrites (a synced channel holds its category's), with Administrator seeing everything, for somebody who holds only that role. A channel whose overwrites or role permissions are not read yet matches neither. Channels @everyone cannot see are listed by name only for someone who can also change settings; for everyone else they are left out and `staffOnlyHidden` counts them. `roles` and `categories` are what the page offers to narrow by. Read from what the bot already stores; nothing is asked of Discord and nothing is changed. Needs the `ViewAnalytics` permission.