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

# Connect Discord

> Put a teammate on Discord as a bot that answers your direct messages and @mentions in your server.

Each Discord bot is a direct line to one teammate. People on the bot's list can send it direct messages. When server channels are on, the bot also answers when someone @mentions it in a server that it was invited to.

For how channels compare, see [Talk to your squad from Telegram, Discord, or Slack](https://squad.so/docs/channels.md).

## Before you start

* You need a Discord account, and the Manage Server permission on the server where you want the bot.
* Get your Discord user ID. In Discord, open Settings, then Advanced, and turn on Developer Mode. Then right-click your own profile and select Copy User ID. The ID has 17 to 20 digits.

## Open the Discord screen

Select **Settings** at the bottom of the sidebar, then **Apps**, then the **Discord** tab. You can also press ⌘K (Ctrl+K on Windows) and type Discord.

The owner and Administrators can open it. A Collaborator or a Viewer cannot.

## Connect a bot

**1. Open the Developer Portal**

Open the Discord Developer Portal at discord.com/developers/applications.

**2. Create an application**

Select New Application and give it a name.

**3. Turn on Message Content Intent**

Open Bot, and switch on Message Content Intent.

**4. Copy the token**

Select Reset Token and copy the token.

**5. Paste the token**

On the Squad **Discord** tab, under **Put a teammate on Discord**, paste the token into **Paste the bot token**.

**6. Add your user ID**

Under **Add yourself and connect**, type your Discord user ID.

**7. Connect**

Select **Connect bot**.

**8. Open the invite link**

The page shows "Connected @" and the bot name, then "Invite it to a server to use it in channels." Select **Add it to a server** below the message. You can also use **Add to a server** on the bot's card later.

**9. Authorize the bot**

In Discord, pick your server and authorize the bot.

The invite link asks Discord for three permissions: View Channels, Send Messages, and Read Message History.

> [!WARNING]
>
> Type your own user ID, not the bot's ID. The Developer Portal shows the bot's ID in several places. Squad refuses the bot's ID.

### Check that it works

* The bot shows as a card with its name. A running bot shows no status. **Offline** means the bot is not running. While your squad finishes its current work, a new bot shows "Your squad starts answering in Discord once it finishes what it’s working on." instead. See [How a channel works](https://squad.so/docs/channels.md#how-a-channel-works).
* Send the bot a direct message in Discord. The teammate answers.
* In a server channel, @mention the bot. The teammate answers.

Discord delivers direct messages to a bot only when you share a server with it. Add the bot to a server first, then send it a direct message.

## Set up the bot

Each bot card has these controls:

| Control | What it does |
| - | - |
| **Answered by** | The teammate that answers this bot. The default is **Your chief of staff**. |
| **Who can message it** | The Discord user IDs that can send the bot direct messages. Everyone else is refused. |
| **Server channels** | A switch. On by default. The bot answers when someone @mentions it in a server that it was invited to. When off, the bot answers direct messages only. |
| **Add to a server** | Opens the Discord invite link for the bot. |
| **Remove** | Removes the bot. Select **Really remove? Messages stop once no teammate is working** to confirm, or **Keep it** to cancel. The primary bot has no **Remove**. Its card shows **Primary** next to the bot's @name, or is titled **Primary bot** when Squad has no bot name for it. |

While a change saves, the card shows **Saving…**. A switch moves only after your squad's computer has the change.

To add a person to **Who can message it**:

1. Ask the person for their Discord user ID. They get it the same way as you did.
2. Type the ID into the field under **Who can message it**.
3. Select **Add**.

The person must also share a server with the bot. A list can hold up to 50 people. See [Limits and defaults](https://squad.so/docs/limits-and-defaults.md).

## Known limits

* In server channels, the bot does not check its list. Anyone who can @mention the bot in a server where it was invited gets an answer. If only the people on the list may use the bot, turn off the **Server channels** switch.
* The list cannot be empty. You can remove yourself when someone else is on the list. Squad does not keep you on a Discord list.
* If the card says that your squad's runtime limits the bot to specific servers and channels, the limit was set on your squad's computer. Ask your chief of staff to change it.

## Troubleshooting

**Squad says "That doesn’t look like a Discord bot token."**
Cause: the token is incomplete. Fix: select Reset Token in the Developer Portal and paste the new token.

**Squad says that Discord rejected the token.**
Cause: the token is old or was reset. Fix: select Reset Token in the Developer Portal and paste the new token.

**The bot does not answer direct messages.**
Cause: you do not share a server with the bot, or the sender is not on the list. Fix: add the bot to a server with **Add to a server**, and check **Who can message it**.

**The bot does not answer in a server channel.**
Cause: the **Server channels** switch is off, or the message does not @mention the bot. Fix: turn on the switch and @mention the bot. Also check that Message Content Intent is on in the Developer Portal, as in the setup steps.

**You cannot remove the last person on the list.**
Cause: an empty list answers nobody, so the x on the last ID is off. Point to it to see "Keep at least one person; an empty list answers nobody." Fix: add another person first.

### Other messages

| Message | Cause | Fix |
| - | - | - |
| "Discord user IDs are 17 to 20 digit numbers, e.g. 246813579246813579." | An ID under **Add yourself and connect** or **Who can message it** is not 17 to 20 digits. | Copy the user ID again, with Developer Mode on. |
| "That's the bot's own ID — enter YOUR user ID (right-click your own profile → Copy User ID)." | You typed the bot's ID. | Type your own user ID. |
| "Couldn’t reach Discord to verify the token — try again." | Squad could not reach Discord. | Wait a moment, then try again. |
| "Keep at least one person — an empty list answers nobody." | You tried to remove the last person. | Add another person first. |
| "Couldn’t connect the bot." | The connection did not go through. | Try again. |

For messages that all channel screens share, see [Messages on every channel screen](https://squad.so/docs/channels.md#messages-on-every-channel-screen).


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