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

# Discord

> Messages, channels and members. For telling a community something, not for deciding what a page says.

Messages, channels and members. For telling a community something, not for deciding what a page says.

## Connecting

In the dashboard, open **Connectors**, find Discord and press **Connect**. The key you enter is checked against Discord before anything is saved, so a key that is refused never becomes a connection that fails later.

### What you will need

| Field | What it is |
| - | - |
| Bot Token | Your Discord bot token (from Discord Developer Portal) |

### Getting the credential

1. Go to [Discord Developer Portal](https://discord.com/developers/applications)
2. Click **New Application** and give it a name
3. Go to **Bot** section and click **Add Bot**
4. Copy the bot token from the **Token** section
5. Go to **OAuth2** → **URL Generator**
6. Select `bot` scope and required permissions
7. Use the generated URL to invite bot to your server

## What your AI teammate can do with it

| Tool | What it does |
| - | - |
| `send_message` | Send a message to a Discord channel |
| `get_channel` | Get information about a Discord channel |
| `get_guild_channels` | Get all channels in a Discord server |
| `create_channel` | Create a new channel in a Discord server |
| `get_channel_messages` | Get messages from a Discord channel |
| `add_reaction` | Add a reaction to a Discord message |
| `get_guild_members` | Get members of a Discord server |
| `create_dm_channel` | Create a DM channel with a user |

## Useful resources

* [Discord documentation](https://discord.com/developers/docs/reference#authentication)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.