> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mira.party/llms.txt
> Use this file to discover all available pages before exploring further.

# Channel behaviours

> Autothreads, gallery channels, command-only channels and news publishing.

Four small features that change how a specific channel behaves.

## Autothreads

Create a thread on every message in a channel. Turns a feed-style channel into something you can actually discuss.

```javascript theme={null}
!autothread add #showcase
```

Requires **Manage Threads**. Aliases: `autothreads`, `threadify`, `athread`.

<AccordionGroup>
  <Accordion title="Naming threads" icon="tag">
    ```javascript theme={null}
    !autothread name #showcase {user.name}'s post
    ```

    Supports [variables](/scripting/variables). `!autothread variables` lists what's available. You can also pass a name when adding:

    ```javascript theme={null}
    !autothread add #showcase {user.name}'s post
    ```
  </Accordion>

  <Accordion title="A message inside each thread" icon="message">
    ```javascript theme={null}
    !autothread message #showcase {description: Nice one — discuss it here.}
    ```

    Sent automatically in every created thread. Remove with `!autothread message remove #showcase`.
  </Accordion>

  <Accordion title="Auto-reactions" icon="face-smile">
    ```javascript theme={null}
    !autothread reactions add #showcase 🔥
    !autothread reactions add #showcase 💯
    !autothread reactions remove #showcase 🔥
    !autothread reactions clear #showcase
    ```

    Reacts to the original message, not the thread. Saves everyone the ritual first reaction.
  </Accordion>

  <Accordion title="Archive time and slowmode" icon="clock">
    ```javascript theme={null}
    !autothread archive #showcase 1440
    !autothread slowmode #showcase 10
    ```

    Archive duration is in **minutes** — 60, 1440 (a day), 4320 (three days) or 10080 (a week). Slowmode is in seconds.
  </Accordion>
</AccordionGroup>

```javascript theme={null}
!autothread list
!autothread remove #showcase
!autothread clear
```

<Note>
  To stop a specific thread being auto-archived by Discord, that's `!thread add` — see [Channels & threads](/moderation/channels#preventing-auto-archive).
</Note>

## Gallery channels

Only allow messages with attachments. Anything without one gets deleted.

```javascript theme={null}
!gallery add #art
!gallery list
!gallery remove #art
!gallery clear
```

Requires **Manage Messages**. Alias: `imgonly`.

<Tip>
  A gallery channel plus autothreads is the standard art-channel setup: images only in the channel, all discussion in threads.

  ```javascript theme={null}
  !gallery add #art
  !autothread add #art {user.name}'s art
  !autothread reactions add #art ❤️
  ```
</Tip>

## Command-only channels

The opposite of a gallery: only allow **commands**. Everything else is deleted.

```javascript theme={null}
!commandonly add #bot-commands
```

Requires **Manage Messages**. Aliases: `cmdonly`, `commandsonly`.

By default mira recognises the prefixes other bots commonly use and leaves those messages alone. To tighten or loosen that:

<CodeGroup>
  ```javascript Only mira's commands theme={null}
  !commandonly mira #bot-commands on
  ```

  ```javascript Only slash commands theme={null}
  !commandonly slash #bot-commands on
  ```

  ```javascript Allow an unusual prefix theme={null}
  !commandonly prefix add #bot-commands $$
  ```

  ```javascript Allow every common prefix again theme={null}
  !commandonly prefix clear #bot-commands
  ```
</CodeGroup>

```javascript theme={null}
!commandonly list
!commandonly remove #bot-commands
!commandonly clear
```

## Auto-publishing

Automatically publish messages posted in announcement channels, so they reach every server that follows yours.

```javascript theme={null}
!publisher add #announcements
!publisher list
!publisher remove #announcements
!publisher clear
```

Requires **Manage Messages**. Alias: `announcement`.

<Warning>
  Discord limits announcement channels to **10 published messages per hour**. Past that, publishing silently fails until the window resets — so don't point this at a busy channel.
</Warning>

## Command reference

| Command                                         | Permission      | Description                |
| ----------------------------------------------- | --------------- | -------------------------- |
| `autothread add <channel> [name]`               | Manage Threads  | Thread every message       |
| `autothread name <channel> <name>`              | Manage Threads  | Thread name template       |
| `autothread message <channel> <script>`         | Manage Threads  | Message inside each thread |
| `autothread reactions add <channel> <emoji>`    | Manage Threads  | Add an auto-reaction       |
| `autothread reactions remove <channel> <emoji>` | Manage Threads  | Remove one                 |
| `autothread reactions clear <channel>`          | Manage Threads  | Clear reactions            |
| `autothread archive <channel> <minutes>`        | Manage Threads  | Archive duration           |
| `autothread slowmode <channel> <seconds>`       | Manage Threads  | Thread slowmode            |
| `autothread variables`                          | Manage Threads  | Available variables        |
| `autothread list`                               | Manage Threads  | Configured channels        |
| `autothread remove <channel>`                   | Manage Threads  | Stop                       |
| `autothread clear`                              | Manage Threads  | Stop everywhere            |
| `gallery add <channel>`                         | Manage Messages | Attachments only           |
| `gallery list`                                  | —               | Gallery channels           |
| `gallery remove <channel>`                      | Manage Messages | Remove                     |
| `gallery clear`                                 | Manage Messages | Remove all                 |
| `commandonly add <channel>`                     | Manage Messages | Commands only              |
| `commandonly mira <channel> (on/off)`           | Manage Messages | Only mira's commands       |
| `commandonly slash <channel> (on/off)`          | Manage Messages | Only slash commands        |
| `commandonly prefix add <channel> <prefix>`     | Manage Messages | Allow a prefix             |
| `commandonly prefix clear <channel>`            | Manage Messages | Allow all common prefixes  |
| `commandonly list`                              | —               | Command-only channels      |
| `commandonly remove <channel>`                  | Manage Messages | Remove                     |
| `publisher add <channel>`                       | Manage Messages | Auto-publish               |
| `publisher list`                                | Manage Messages | Published channels         |
| `publisher remove <channel>`                    | Manage Messages | Remove                     |
| `publisher clear`                               | Manage Messages | Remove all                 |
