Перейти к содержимому

Admin threads

You can list and delete threads in any guild through the Admin API.

GET /v1/admin/guilds/{guild_id}/threads
Можно указать причину для журнала аудита.

Returns every thread of a guild, active and archived, with the most recently created first. You need guild:lookup.

FieldTypeDescription
threadsarray[thread object]The threads of the guild
StatusBodyCondition
200response bodyThe 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 /v1/admin/channels/{channel_id}
Можно указать причину для журнала аудита.

Deletes a thread with its messages and memberships. You need message:delete_all.

StatusBodyCondition
204emptyThe thread was deleted
400error responseINVALID_CHANNEL_TYPE when the channel is not a thread
404error responseUNKNOWN_CHANNEL when no channel has this ID

Squad 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.