# chat.yakka.reaction

> Published by [yakka.chat](https://lexicon.garden/identity/did:plc:wpjoy2orkqq5m65vq7gg7liz)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:wpjoy2orkqq5m65vq7gg7liz/chat.yakka.reaction)
- [Documentation](https://lexicon.garden/lexicon/did:plc:wpjoy2orkqq5m65vq7gg7liz/chat.yakka.reaction/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:wpjoy2orkqq5m65vq7gg7liz/chat.yakka.reaction/examples)

## Definitions

### `chat.yakka.reaction`

**Type**: `record`

One reactor's reaction to one message. Written into the reactor's own repo within the message's space, so counts are an aggregate the view computes across the space's repos — never a mutable field on the message, which nobody but the author could write.

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `emoji` | `string` | Yes | The reaction itself, as a literal emoji cluster. Graphemes are capped rather than bytes alone because a single emoji with modifiers is many bytes and one visual unit. |
| `subject` | `ref` → `com.atproto.repo.strongRef` | Yes | The message being reacted to. |
| `createdAt` | `string` (datetime) | Yes |  |

## Raw Schema

```json
{
  "id": "chat.yakka.reaction",
  "defs": {
    "main": {
      "key": "tid",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "subject",
          "emoji",
          "createdAt"
        ],
        "properties": {
          "emoji": {
            "type": "string",
            "maxLength": 64,
            "description": "The reaction itself, as a literal emoji cluster. Graphemes are capped rather than bytes alone because a single emoji with modifiers is many bytes and one visual unit.",
            "maxGraphemes": 8
          },
          "subject": {
            "ref": "com.atproto.repo.strongRef",
            "type": "ref",
            "description": "The message being reacted to."
          },
          "createdAt": {
            "type": "string",
            "format": "datetime"
          }
        }
      },
      "description": "One reactor's reaction to one message. Written into the reactor's own repo within the message's space, so counts are an aggregate the view computes across the space's repos — never a mutable field on the message, which nobody but the author could write."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
