# Discord

Discord is an optional way to send messages to your agents when you are away from the computer. Discord adds to the dashboard and does not replace it. Catervas opens the connection to Discord from your computer. So you do not need to open anything on your computer to the internet.

## Connecting Discord

Open the **Discord** page in the dashboard. Then do these steps:

1. Create a bot of your own in the [Discord developer portal](https://discord.com/developers/applications).
2. Copy the bot's token.
3. On the bot's page in the portal, switch off **Public Bot**. Then nobody else can invite the bot into their own server.
4. Paste the token into Catervas.
5. Invite the bot to a Discord server that you own.

Catervas gives each agent a private channel in that server.

## Who the bot listens to

The bot obeys only the owner of the server. If somebody invites the bot to another server, Catervas ignores that server until you disconnect the bot in the dashboard.

## Sending and getting files in Discord

You can attach files to a message in an agent's channel. These files reach the agent in the same way as files that you attach in the dashboard:

- Catervas accepts the same kinds of file.
- Each file can be up to 20 MB, and one message can carry up to 10 files.
- If Catervas refuses a file, you get the same short sentence in reply, which names the file.

When an agent in a workspace gives you a file, the bot posts it in the agent's channel as an ordinary file. The text of the post is the agent's line about the file.

To post a file, the bot needs permission to attach files. A bot that you invite with Catervas's link has that permission. If your bot does not have it, the bot posts a message in place of the agent's file. The message says to download the file in Catervas. To fix this problem, give the bot the **Attach Files** permission in your server's settings.
