# Private messages

## Commands

### /msg \<playername> \<message>

You can use it with **`redischat.message`** permission.&#x20;

The player name field is suggested by RedisChat starting from all the player names saved on RedisChat on every instance of it

The message field can be formatted with MiniMessage but you need **`redischat.useformatting`** to use MiniMessage tags

### &#x20;/reply \<message>

Reply to the last received message. It has the same permission as /msg

The message field can be formatted with MiniMessage but you need **`redischat.useformatting`** to use MiniMessage tags

## Configs

formats (list) -> private\_format - **when sending a message**

```yaml
  private_format: '<dark_aqua>MSG <white>(<reset>You <white>to <green>%receiver%<white>)<reset>:
    <white>%message%'
```

formats (list) -> receive\_private\_format - **when receiving a message**

```yaml
  receive_private_format: '<dark_aqua>MSG <white>(<green>%sender% <white>to <reset>You<white>)<reset>:
    <white>%message%'
```

%receiver% is the name of the receiver

%sender% is the name of the sender

%message% pastes the message content


---

# 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://emibergo.gitbook.io/redischat/features/private-messages.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.
