# social.grain.comment

- Kind: record
- Record key: tid
- Authority: grain.social
- Lexicon: 1
- Published by [grain.social](https://lexicon.garden/identity/did:plc:e7rftrdyz5e2rw4y6ocszew2), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:e7rftrdyz5e2rw4y6ocszew2/social.grain.comment)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:e7rftrdyz5e2rw4y6ocszew2/social.grain.comment/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:e7rftrdyz5e2rw4y6ocszew2/social.grain.comment/analytics)

## Record (`social.grain.comment`)

Type: record · key tid

### Properties

- `createdAt` (string · datetime, required)
- `facets` (array): Annotations of description text (mentions and URLs, hashtags, etc)
  - `items` (ref)
    - Reference: `app.bsky.richtext.facet`
- `focus` (string · at-uri)
- `replyTo` (string · at-uri)
- `subject` (string · at-uri, required)
- `text` (string, required)
  - Constraints: maxLength: 3000, maxGraphemes: 300

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "key": "tid",
      "record": {
        "properties": {
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "facets": {
            "description": "Annotations of description text (mentions and URLs, hashtags, etc)",
            "items": {
              "ref": "app.bsky.richtext.facet",
              "type": "ref"
            },
            "type": "array"
          },
          "focus": {
            "format": "at-uri",
            "type": "string"
          },
          "replyTo": {
            "format": "at-uri",
            "type": "string"
          },
          "subject": {
            "format": "at-uri",
            "type": "string"
          },
          "text": {
            "maxGraphemes": 300,
            "maxLength": 3000,
            "type": "string"
          }
        },
        "required": [
          "text",
          "subject",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "social.grain.comment",
  "lexicon": 1
}
```
