> For the complete documentation index, see [llms.txt](https://miulien.gitbook.io/bot/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://miulien.gitbook.io/bot/en/utilities/threads.md).

# Thread Management (threads)

Run `/threads` or `m!threads` to open a panel for browsing, creating, and managing threads belonging to the current text channel.

## Browse threads

* Run the command in a server **text channel** or inside a thread (which opens the parent text channel's thread list).
* Switch between **Active** and **Archived** threads.
* Choose a thread from the dropdown and browse up to **25 threads per page**.
* Use **Refresh** after another person changes thread settings.

Only the person who opened a panel can operate it. Each panel expires after **10 minutes**; other members can open their own panels.

## Create threads

Select **Create Public** or **Create Private**, and enter a name of at most **100 characters**.

* Public threads require both the user and Miulien to have **Create Public Threads**.
* Private threads require both parties to have **Create Private Threads**; Miulien tries to invite the creator.
* The legacy `m!thread` command is disabled. Use the `threads` panel instead.

{% hint style="info" %}
Discord shows Miulien as the creator of threads created through the bot. Miulien separately records the user who requested the thread for its own permission checks. Threads created by the bot before this update do not have their original requester backfilled.
{% endhint %}

## Rename, archive, reopen, lock

After selecting a thread, choose **Rename**, **Archive**, **Reopen**, **Lock**, or **Unlock** as appropriate. Archive, reopen, lock, and unlock actions show confirmation dialogs to prevent mistakes. Confirmations expire after about **60 seconds**.

## Permission checks

| Action                                      | User requirement                                            |
| ------------------------------------------- | ----------------------------------------------------------- |
| Create public thread                        | Create Public Threads                                       |
| Create private thread                       | Create Private Threads                                      |
| Rename/archive own active thread            | Recorded creator; thread not locked                         |
| Reopen unlocked public thread               | Can see channel and either send in thread or be its creator |
| Reopen unlocked private thread              | Confirmed creator in this panel                             |
| Lock/unlock or manage someone else's thread | Manage Threads                                              |

These are checks performed by **Miulien's panel**, and Discord's API must also allow the action. Miulien needs the appropriate channel permissions; the bot checks **Manage Threads** for renaming, archiving, reopening, and locking operations.

### Private-thread visibility

To avoid exposing private threads accessible to the bot but not the user, non-moderators without **Manage Threads** only see private threads they are **confirmed to have created**. Joining someone else's private thread does not guarantee it appears in this panel.

## Additional limits

* Supported in ordinary **text channels** and their threads, not directly in forum channels.
* The panel does not delete threads, pin forum posts, or pin messages inside threads.
* Locked threads require **Manage Threads** to reopen, unlock, or modify them.
* If Discord rejects an action, check permission overrides, bot permissions, and the thread's current state.

See [Command Permissions](/bot/en/utilities/permissions.md).
