Get the Discord quiet channels list
/api/discord/reports/quiet-channelsThe 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.
An API key, made on Settings, API keys. Every key starts with mbk_.
In: header
Query Parameters
Response Body
application/json
application/problem+json
application/problem+json
curl -X GET "https://example.com/api/discord/reports/quiet-channels"{ "guildId": null, "now": "2019-08-24T14:15:22Z", "channels": [ { "id": "string", "name": "string", "type": "string", "categoryId": null, "categoryName": null, "staffOnly": true, "canRead": true, "stillReading": true, "lastMessageAt": null } ], "staffOnlyHidden": 0, "roles": [ { "id": "string", "name": "string", "color": 0 } ], "categories": [ { "id": "string", "name": "string" } ]}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.
Unban on Discord DELETE
Lift one person's Discord ban. The address names their Discord id; `reason` goes to Discord's audit log with your account's name. One request, never retried. Once Discord accepts, the audit log records who asked. `changed` is false when they were not banned. Never the bot's own account, the server's owner or a Discord account linked to a Modbot staff account: those answer 403 `refused`. Needs the `DiscordUnban` permission.