> For the complete documentation index, see [llms.txt](https://alexmens.gitbook.io/chatplus/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://alexmens.gitbook.io/chatplus/other-features/discordsrv-integration.md).

# DiscordSRV Integration

## <mark style="color:blue;">How it works</mark>

ChatPlus plugin **use DiscordSRV Integration** to allow players **write or recive messages of a chat** on Discord. Obviously that **text channel** can be configured as you want and you can set the permissions you want.

## <mark style="color:blue;">How to install</mark>

To configure DiscordSRV with ChatPlus you need **first to configure** [DiscordSRV by following the documentation on their website.](https://docs.discordsrv.com/) \
Then you have  to **create a category on your server called "ChatPlus"** and configure it as you want. **Most important to give full access to DiscordSRV bot.**\
In that category you have to **create a text channel called at the same way of the chat you want to plug.**\
Example:

<figure><img src="https://999216976-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8eZf40eJCBcgDvwRE7CC%2Fuploads%2FhIPgBHnml3hQwsAo05SG%2Fdiscordtextchannel.png?alt=media&amp;token=f5d7b2b9-5c54-4754-a8bd-673a90410ec8" alt=""><figcaption></figcaption></figure>

After that, **enable your developer mode** from user settings and c**opy the text channel ID:**

<figure><img src="https://999216976-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8eZf40eJCBcgDvwRE7CC%2Fuploads%2F44eezit28mmBo73KGwnX%2FProgetto%20senza%20titolo%20(1).png?alt=media&amp;token=342a15e2-776f-4569-b34b-9e2626c75296" alt="" width="125"><figcaption></figcaption></figure>

Now open the config.yml of DiscordSRV plugin and search for "Channels" options.\
**Now here you have to declare chats you want to use using ths format:**

```yaml
{......., "<chatId>": "<channelID>", "<chatId1>": "<channelID1>"}
```

**E.g.**

```
Channels: {"global": "000000000000000000", "not_chatplus": "32580471698750408517", "staff": "12580478698750308597", "gang": "42580378698790308597", "faction_teamblue": "12582478694750398599"}
```

## <mark style="color:blue;">How to use</mark>

Now a player, based on permission of text channel you setted, **can send messages that in-game players receive and read messages that are automatically sended also on text channel** of that chat, if configured. [Everything is based on settings of chatplus config.yml.](/chatplus/configuration-files/config.yml.md#discordsrv-section)
