> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.nvidia.com/nemoclaw/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.nvidia.com/nemoclaw/_mcp/server.

# Set Up Discord

> Prepare a Discord bot token, server access, user restriction, and mention behavior for NemoClaw.

Create a Discord bot and choose its server and user access before you enable the channel.

## Prepare Discord Settings

Copy the bot token from the Discord Developer Portal into `DISCORD_BOT_TOKEN`.
For server channels, enable Developer Mode in Discord, right-click the server, and copy the Server ID into `DISCORD_SERVER_ID`.

By default, NemoClaw configures the bot to reply only when mentioned.
If `DISCORD_SERVER_ID` is set and `DISCORD_REQUIRE_MENTION` is unset, NemoClaw defaults `DISCORD_REQUIRE_MENTION` to `1`.

Set `DISCORD_REQUIRE_MENTION=0` if you want the bot to reply to all messages in the configured server.
Set `DISCORD_USER_ID` to restrict access to one user.

Without `DISCORD_USER_ID`, any member of the configured server can message the bot.

## Enable Discord

Export the settings before onboarding or `channels add discord`:

```bash
export DISCORD_BOT_TOKEN="<your-discord-bot-token>"
export DISCORD_SERVER_ID="<your-discord-server-id>"
export DISCORD_REQUIRE_MENTION=1
```

Continue with [Enable Channels During Onboarding](enable-channels-during-onboarding) or [Add Channels After Onboarding](add-channels-after-onboarding).
If the bot logs in but delivery fails, refer to [Discord bot logs in, but the channel still does not work](../../reference/troubleshooting#discord-bot-logs-in-but-the-channel-still-does-not-work).