Skip to content
Fluxer API

Admin threads

The Admin API reads and deletes threads in any guild.

GET/v1/admin/guilds/{guild_id}/threadsAudit reason

Returns every thread of a guild, active and archived, newest first. Requires guild:lookup.

FieldTypeDescription
guild_idsnowflakeThe ID of the guild
FieldTypeDescription
threadsarray[thread object]The threads of the guild
StatusBodyCondition
200response bodyThreads were listed

The operation does not verify that the guild exists. An unknown guild ID returns an empty threads array.

One Admin audit entry is recorded with the action list_guild_threads, the target type guild, and the guild ID as the target. Its metadata key result_count is the number of threads returned.

200 requests per minute for each authenticated user, on the admin:lookup bucket.

DELETE/v1/admin/channels/{channel_id}Audit reason

Deletes a thread with its messages, attachments, and memberships. Requires message:delete_all. Returns 204 with no body.

FieldTypeDescription
channel_idsnowflakeThe ID of the thread
StatusBodyCondition
204emptyThread was deleted
400error responseINVALID_CHANNEL_TYPE when the channel is not a public, private, or announcement thread
404error responseUNKNOWN_CHANNEL when no channel has this ID

Emits a Thread Delete Gateway event. The source message of a thread started from a message loses HAS_THREAD, and Fluxer emits Message Update for it. Fluxer removes the thread and its messages from search.

One Admin audit entry is recorded with the action delete_thread, the target type channel, and the thread ID as the target. Its metadata keys are guild_id, parent_id, and type. type is the channel type as a decimal string. The guild’s own audit log records nothing.

100 requests per minute for each authenticated user, on the admin:message:operation bucket.