# Chat Relay

{% hint style="warning" %} <mark style="color:red;">**configs/plugins/DU\_ChatRelay/DU\_ChatRelay.json**</mark>
{% endhint %}

{% hint style="info" %}

1. Display messages that are written ingame on your Discord server. Messages are divided into All, Team and Admin Chat
2. Send a message from your Discord server to your game server.
   {% endhint %}

<div align="center"><figure><img src="/files/Byt9OyTYZqAcq0zSqzbA" alt="" width="264"><figcaption></figcaption></figure> <figure><img src="/files/MzzSCNkhsYBqAwvYI5zk" alt=""><figcaption></figcaption></figure></div>

### All/Team Chat Settings

<table><thead><tr><th width="229">Property</th><th>Description</th></tr></thead><tbody><tr><td><strong>Enabled</strong></td><td>If this feature will be available <mark style="color:green;"><code>true</code></mark> / <mark style="color:red;"><code>false</code></mark> </td></tr><tr><td><strong>Blocked Words</strong></td><td>Which words will not be displayed</td></tr><tr><td><strong>Display Commands</strong></td><td>Will commands also be sent to discord? <mark style="color:green;"><code>true</code></mark> / <mark style="color:red;"><code>false</code></mark> </td></tr><tr><td><strong>Channel ID</strong></td><td>The Channel ID where the All/Team Chat message will be sent</td></tr></tbody></table>

### Admin Chat Settings

<table><thead><tr><th width="230">Property</th><th>Description</th></tr></thead><tbody><tr><td><strong>Enabled</strong></td><td>If this feature will be available <mark style="color:green;"><code>true</code></mark> / <mark style="color:red;"><code>false</code></mark> </td></tr><tr><td><strong>Admin Flag</strong></td><td>Flag that allows admin to send messages to Admin Chat</td></tr><tr><td><strong>Channel ID</strong></td><td>The Channel ID where the Admin Chat message will be sent</td></tr></tbody></table>

### Discord Relay Settings

<table><thead><tr><th width="250">Property</th><th>Description</th></tr></thead><tbody><tr><td><strong>Enabled</strong></td><td>If this feature will be available <mark style="color:green;"><code>true</code></mark> / <mark style="color:red;"><code>false</code></mark> </td></tr><tr><td><strong>Channel ID</strong></td><td>The Channel ID where you will send messages</td></tr><tr><td><strong>Ingame Message Format</strong></td><td>What the message will look like when sent to the game server</td></tr></tbody></table>

{% hint style="success" %}
**To edit the embeds, follow the instructions:** [**Custom Embeds Format**](/discord-utilities/tutorials/custom-embeds-format.md)&#x20;

> Available Variables for <mark style="color:red;">`Ingame Message Format`</mark>

• [**Discord**](/discord-utilities/available-variables.md#discord-variables)

> Available Variables for <mark style="color:red;">`All/Team/Admin Chat Log embeds`</mark>

• [**Server**](/discord-utilities/available-variables.md#server-variables) **and** [**Player**](/discord-utilities/available-variables.md#player-variables)\
**•** <mark style="color:blue;">{MESSAGE}</mark> > Display the message
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.sourcefactory.eu/discord-utilities/modules/chat-relay.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
