# at.atpcraft.player.chat

> Published by [atpcraft.at](https://lexicon.garden/identity/did:plc:6y74tzb6iqeuzuqqxgkizrek)

✓ This is the authoritative definition for this NSID.

## Description

Player chat message records for ATPcraft. Each message sent by a player is stored as a record in their PDS.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:6y74tzb6iqeuzuqqxgkizrek/at.atpcraft.player.chat)
- [Documentation](https://lexicon.garden/lexicon/did:plc:6y74tzb6iqeuzuqqxgkizrek/at.atpcraft.player.chat/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:6y74tzb6iqeuzuqqxgkizrek/at.atpcraft.player.chat/examples)

## Definitions

### `at.atpcraft.player.chat`

**Type**: `record`

One chat message per player. The record key is the server's signing key id.

**Key**: `any`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `sentAt` | `string` (datetime) | Yes | When the message was sent (ISO 8601). |
| `server` | `string` | Yes | Identifier of the server where the message was sent. |
| `message` | `string` | Yes | The plain text of the chat message. |
| `position` | `ref` → `at.atpcraft.player.defs#position` | No | The player's position when the message was sent. |
| `dimension` | `string` | No | The dimension where the player was when they sent the message, e.g. minecraft:overworld. |

## Raw Schema

```json
{
  "id": "at.atpcraft.player.chat",
  "defs": {
    "main": {
      "key": "any",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "sentAt",
          "message",
          "server"
        ],
        "properties": {
          "sentAt": {
            "type": "string",
            "format": "datetime",
            "description": "When the message was sent (ISO 8601)."
          },
          "server": {
            "type": "string",
            "maxLength": 256,
            "description": "Identifier of the server where the message was sent."
          },
          "message": {
            "type": "string",
            "maxLength": 1024,
            "description": "The plain text of the chat message."
          },
          "position": {
            "ref": "at.atpcraft.player.defs#position",
            "type": "ref",
            "description": "The player's position when the message was sent."
          },
          "dimension": {
            "type": "string",
            "maxLength": 256,
            "description": "The dimension where the player was when they sent the message, e.g. minecraft:overworld."
          }
        }
      },
      "description": "One chat message per player. The record key is the server's signing key id."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1,
  "description": "Player chat message records for ATPcraft. Each message sent by a player is stored as a record in their PDS."
}
```
