Admin threads
You can list and delete threads in any guild through the Admin API.
List guild threads
Section titled “List guild threads”GET/v1/admin/guilds/{guild_id}/threadsReturns every thread of a guild, active and archived, with the most recently created first. You need guild:lookup.
Response body
Section titled “Response body”| Field | Type | Description |
|---|---|---|
| threads | array[thread object] | The threads of the guild |
Response
Section titled “Response”| Status | Body | Condition |
|---|---|---|
| 200 | response body | The threads were returned |
An unknown guild ID returns an empty threads array.
The rate limit is 200 requests per minute, on the admin:lookup bucket.
Delete thread
Section titled “Delete thread”DELETE/v1/admin/channels/{channel_id}Deletes a thread with its messages and memberships. You need message:delete_all.
Response
Section titled “Response”| Status | Body | Condition |
|---|---|---|
| 204 | empty | The thread was deleted |
| 400 | error response | INVALID_CHANNEL_TYPE when the channel is not a thread |
| 404 | error response | UNKNOWN_CHANNEL when no channel has this ID |
Fluxer sends Thread Delete. If the thread started from a message, it also sends Message Update for that message. The deletion doesn't show up in the guild's audit log.
The rate limit is 100 requests per minute, on the admin:message:operation bucket.