Discord error 50083: Operation on an archived thread
Last verified against Discord Developer Docs - Opcodes and status codes
Tried to perform an operation on an archived thread, such as editing a message or adding a user to the threadWhat error 50083 means
The thread you targeted is archived, and the operation you attempted is not allowed until it is unarchived. The literal message names two examples, editing a message in the thread and adding a user to it, but the same applies to other changes made inside an archived thread.
Threads auto-archive after a period of inactivity set by auto_archive_duration. Bots that keep a ticket or support thread open and edit a status message in it hours later find the thread archived by then. Adding a user with PUT /channels/{channel.id}/thread-members/{user.id} fails in the same way.
Unarchiving is a PATCH on the thread with archived: false. If the thread is also locked, only members with Manage Threads can unarchive it; see 160005.
What it looks like
{
"message": "Tried to perform an operation on an archived thread, such as editing a message or adding a user to the thread",
"code": 50083
}Why it happens
- Thread auto-archived after inactivity before the bot edited a message
- Adding a user to a thread that was archived
- Moderator manually archived the thread
- Background job acting on a ticket thread long after it went quiet
How to fix Discord error 50083
- 1Fetch the thread and check thread_metadata.archived
- 2PATCH /channels/{thread.id} with archived: false, then retry the operation
- 3If the thread is locked, make sure the bot has Manage Threads before unarchiving
- 4Choose a longer auto_archive_duration for threads the bot keeps editing
- 5Remember that auto_archive_duration only accepts 60, 1440, 4320 or 10080 minutes
How to stop it recurring
Check archive state before acting on threads in delayed jobs, and unarchive explicitly as part of the job. Listen for THREAD_UPDATE to keep your view of archive status current. Active-thread caps that block unarchiving are covered on 160006. Unarchive in the same job that edits, so the two steps cannot drift apart.
Official reference: Discord Developer Docs - Opcodes and status codes. See all Discord error codes or the Discord limits and quotas.
Related codes
- 160005: Thread is lockedThread is locked
- 160006: Maximum number of active threads reachedMaximum number of active threads reached
- 30033: Maximum number of thread participants has been reached (1000)Maximum number of thread participants has been reached (1000)
- 50013: Missing permissionsYou lack permissions to perform that action
Error 50083 - quick answers
What does Discord error 50083 mean?
The thread you targeted is archived, and the operation you attempted is not allowed until it is unarchived. The literal message names two examples, editing a message in the thread and adding a user to it, but the same applies to other changes made inside an archived thread. Threads auto-archive after a period of inactivity set by auto_archive_duration .
How do I fix Discord error 50083?
1. Fetch the thread and check thread_metadata.archived 2. PATCH /channels/{thread.id} with archived: false, then retry the operation 3. If the thread is locked, make sure the bot has Manage Threads before unarchiving 4. Choose a longer auto_archive_duration for threads the bot keeps editing 5. Remember that auto_archive_duration only accepts 60, 1440, 4320 or 10080 minutes
Should I retry after error 50083?
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.