# Messages

There are two mediums through which messages are sent, that being Minecraft and Discord.

### Minecraft

The types of Discord events relayed to Minecraft are:

* A user sent a message
* A user edited their recently sent message
* A user reacted to a recent message
* A user removed their reaction from a recent message
* A user sent a message that contained attachments

{% hint style="success" %}
See the [Minecraft messages](https://axieum.gitbook.io/chatter-for-minecraft/discord/messages/minecraft) page for configuration instructions.
{% endhint %}

### Discord

The types of Minecraft events relayed to Discord are:

* A player sent an in-game message
* A player died
* A named animal/monster (with name tag) died
  * Requires the Chatter World [game rule](https://axieum.gitbook.io/chatter-for-minecraft/world/named-animal-monster-death-messages)
* A player unlocked an advancement
* A player teleported to another dimension
* A player joined the game
* A player left the game
* The server began to start
* The server started and is accepting connections
* The server began to stop
* The server stopped and is offline
* The server stopped unexpectedly and is inaccessible

{% hint style="success" %}
See the [Discord messages](https://axieum.gitbook.io/chatter-for-minecraft/discord/messages/discord) page for configuration instructions.
{% endhint %}

## Configuration

{% hint style="success" %}
Made changes to the configuration? Type **`/reload`** to apply the changes immediately!
{% endhint %}

### Entries

A messages entry configures how messages are sent and received for the events above, with each targeting a specific Discord channel and/or Minecraft dimensions. You can have as many configurations as you desire, each serving a different purpose.

#### Discord Channel ID

An identifier for a channel within Discord to observe and post messages to.

```javascript
"entries": [
	{
		// Identifier for a channel within Discord to observe
		"id": 801945943871613728,
		// ...
	},
	// ...
]
```

![Finding a Discord channel identifer](https://2905471890-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MWJ0CGscN1zQsA_eF9d%2F-MXFWI22DCmkNjZL4nXi%2F-MXFY88tifLnD6-V-AMy%2Fdiscord_get_channel_id.gif?alt=media\&token=bd8bee8f-7310-47fb-9bfe-1b384e400f17)

#### Minecraft Dimensions

If non-empty, reduces the scope of all events to the listed Minecraft dimension identifiers, e.g. `minecraft:overworld`, `minecraft:the_nether`, `minecraft:the_end`, etc.

{% tabs %}
{% tab title="Only The End" %}

```javascript
"entries": [
	{
		// ...

		// If non-empty, reduces the scope of all events to the listed Minecraft dimension IDs (e.g. 'minecraft:the_nether')
		"dimensions": ["minecraft:the_end"],

		// ...
	},
	// ...
]
```

{% endtab %}

{% tab title="Only The End & Nether" %}

```javascript
"entries": [
	{
		// ...

		// If non-empty, reduces the scope of all events to the listed Minecraft dimension IDs (e.g. 'minecraft:the_nether')
		"dimensions": ["minecraft:the_end", "minecraft:the_nether"],

		// ...
	},
	// ...
]
```

{% endtab %}

{% tab title="Any Dimension" %}

```javascript
"entries": [
	{
		// ...

		// If non-empty, reduces the scope of all events to the listed Minecraft dimension IDs (e.g. 'minecraft:the_nether')
		"dimensions": [],

		// ...
	},
	// ...
]
```

{% endtab %}
{% endtabs %}

#### Minecraft Events

{% content-ref url="messages/minecraft" %}
[minecraft](https://axieum.gitbook.io/chatter-for-minecraft/discord/messages/minecraft)
{% endcontent-ref %}

#### Discord Events

{% content-ref url="messages/discord" %}
[discord](https://axieum.gitbook.io/chatter-for-minecraft/discord/messages/discord)
{% endcontent-ref %}
