Discord API · error code

Discord error 160006: Maximum number of active threads reached

Permanent - do not retryHTTP 400Maximum reached (30xxx)

Last verified against Discord Developer Docs - Opcodes and status codes

What Discord returns
Maximum number of active threads reached

What error 160006 means

The guild has reached its cap on active (unarchived) threads, so Discord refused to create or unarchive another. Archived threads do not count; only threads currently open do. The literal message gives no number, so do not hard-code one.

Servers reach this cap when threads are created faster than they archive. Bots are a common contributor: auto-thread features that open a thread for every message in a busy channel, ticket systems that never archive closed tickets, and forum channels where posts are left open indefinitely.

Announcement threads have a separate cap, reported as 160007.

Unarchiving makes a thread active again, so a bot that unarchives old threads to post in them can hit the cap without creating any new ones. Forum posts are threads too, so open forum posts count toward the same pool.

What it looks like

{
  "message": "Maximum number of active threads reached",
  "code": 160006
}

Why it happens

  • Auto-thread bot creating a thread per message in a busy channel
  • Ticket or support threads left open after they are resolved
  • Long auto_archive_duration on many threads
  • Bot unarchiving old threads in bulk
  • Open forum posts accumulating in busy forum channels

How to fix Discord error 160006

  1. 1List active threads with GET /guilds/{guild.id}/threads/active
  2. 2Archive threads that are finished (PATCH archived: true)
  3. 3Shorten auto_archive_duration for threads the bot creates
  4. 4Retry thread creation once older threads are archived
  5. 5Ask admins to close or archive old forum posts as well

How to stop it recurring

Archive threads the moment their purpose is done, especially in ticket and auto-thread features, and use short archive durations by default. Monitor the active thread count from the active-threads endpoint and alert admins before the server reaches the cap. Report the active count in your bot's admin dashboard.

Official reference: Discord Developer Docs - Opcodes and status codes. See all Discord error codes or the Discord limits and quotas.

Related codes

Error 160006 - quick answers

What does Discord error 160006 mean?

The guild has reached its cap on active (unarchived) threads, so Discord refused to create or unarchive another. Archived threads do not count; only threads currently open do. The literal message gives no number, so do not hard-code one. Servers reach this cap when threads are created faster than they archive.

How do I fix Discord error 160006?

1. List active threads with GET /guilds/{guild.id}/threads/active 2. Archive threads that are finished (PATCH archived: true) 3. Shorten auto_archive_duration for threads the bot creates 4. Retry thread creation once older threads are archived 5. Ask admins to close or archive old forum posts as well

Should I retry after error 160006?

No. Retrying the same request produces the same error; the condition has to be fixed first. Treat it as a permanent failure for that message and surface it, rather than looping.

Stop debugging Discord by hand

Connect the channel through Conferbot: tokens, webhooks and retries are handled, failures show as readable status.