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

# Discord

> Deploy agents to Discord for community support and moderation.

The Discord integration connects any Agno agent to Discord via the Gateway API. No webhooks required.

## Quick Start

```python discord_agent.py theme={null}
from agno.agent import Agent
from agno.models.openai import OpenAIResponses
from agno.integrations.discord import DiscordClient

agent = Agent(name="Assistant", model=OpenAIResponses(id="gpt-5.4"))

discord_client = DiscordClient(agent)

if __name__ == "__main__":
    discord_client.serve()
```

```bash theme={null}
uv pip install agno discord.py
python discord_agent.py
```

## How It Works

| Concept         | Behavior                                                     |
| --------------- | ------------------------------------------------------------ |
| **Gateway**     | Direct connection to Discord, no webhooks or tunnels needed  |
| **Threads**     | Auto-creates threads for conversations with isolated context |
| **Intents**     | Requires Message Content Intent enabled in Developer Portal  |
| **Permissions** | Send Messages, Read History, Create Threads, Attach Files    |

## Setup

Requires a Discord Application with a bot user. See [Discord Developer Portal](https://discord.com/developers/applications).

**Environment variables:**

```bash theme={null}
export DISCORD_BOT_TOKEN="..."
```

## Next Steps

<CardGroup cols={2}>
  <Card title="Full Guide" icon="book" href="/integrations/discord/overview">
    Bot setup, threads, intents, and permissions.
  </Card>

  <Card title="Examples" icon="code" href="/integrations/discord/usage/basic">
    Basic agent, media handling, and user memory.
  </Card>

  <Card title="DiscordTools" icon="wrench" href="/tools/toolkits/social/discord">
    Give agents channel, message, and reaction capabilities.
  </Card>

  <Card title="Discord Developer Portal" icon="discord" href="https://discord.com/developers/applications">
    Create and manage your Discord application.
  </Card>
</CardGroup>
