# In Discord

Use @Nairi mention commands to bind an agent to a channel, switch modes, and inspect running tasks.



Discord does not use native slash commands for Nairi. Instead, you mention the bot and prefix the command with `-cmd`:

```
@Nairi -cmd <command>
```

Unlike Slack, Discord command responses are **posted in the channel** (or in the thread, if you ran the command from inside one).

## Available commands [#available-commands]

| Command                           | What it does                                                          |
| --------------------------------- | --------------------------------------------------------------------- |
| `@Nairi -cmd help`                | Print the full command reference.                                     |
| `@Nairi -cmd agents`              | List every agent in your org.                                         |
| `@Nairi -cmd agent`               | Show which agent is currently the default for this channel.           |
| `@Nairi -cmd agent=<agent-id>`    | Set the default agent for this channel.                               |
| `@Nairi -cmd mode=<ask\|execute>` | Set the default execution mode for this channel. See [Modes](#modes). |
| `@Nairi -cmd ls`                  | List active tasks in this channel.                                    |
| `@Nairi -cmd lsa`                 | List active tasks across every channel in this Discord server.        |

## Channel binding [#channel-binding]

Same model as Slack:

1. `@Nairi -cmd agents` to list available agents.
2. `@Nairi -cmd agent=ag_…` to bind the channel.
3. `@Nairi <prompt>` to start using it.

To override the bound agent for one message:

```
@Nairi [agent=ag_…] <prompt>
```

## Modes [#modes]

* **`ask`**: confirm before running destructive actions (default).
* **`execute`**: run without asking.

Set with `@Nairi -cmd mode=ask` or `@Nairi -cmd mode=execute`.

## Inspecting tasks [#inspecting-tasks]

* `@Nairi -cmd ls` shows tasks created in the current channel.
* `@Nairi -cmd lsa` shows tasks across the Discord server.

## Related [#related]

* [Connecting Nairi to Discord](/help/integrations/discord)
* [Configure in Slack](/help/configuring-the-agent/slack)
* [Communicating with agents in Slack & Discord](/help/communicating-with-agents/slack-and-discord)

***

*Can't find what you're looking for? Email [support@nairi.ai](mailto:support@nairi.ai).*
