# app.atmobb.discussion.thread

> Published by [lexicons.atmobb.app](https://lexicon.garden/identity/did:plc:dqnwiguwsbb6uwrm7a2rsff2)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:dqnwiguwsbb6uwrm7a2rsff2/app.atmobb.discussion.thread)
- [Documentation](https://lexicon.garden/lexicon/did:plc:dqnwiguwsbb6uwrm7a2rsff2/app.atmobb.discussion.thread/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:dqnwiguwsbb6uwrm7a2rsff2/app.atmobb.discussion.thread/examples)

## Definitions

### `app.atmobb.discussion.thread`

**Type**: `record`

A discussion thread (topic). Lives in the author's repo, pointing at a board in a forum's repo.

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `body` | `array` | No |  |
| `poll` | `ref` → `#poll` | No |  |
| `tags` | `array` | No |  |
| `board` | `string` (at-uri) | Yes | The app.atmobb.forum.board this thread belongs to. The board URI's authority is the forum's DID. |
| `title` | `string` | Yes |  |
| `createdAt` | `string` (datetime) | No |  |

### `app.atmobb.discussion.thread#poll`

**Type**: `object`

An embedded poll. Votes are app.atmobb.poll.vote records referencing this thread.

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `options` | `array` | Yes |  |
| `closesAt` | `string` (datetime) | No |  |
| `question` | `string` | No |  |
| `multipleChoice` | `boolean` | No |  |

## Raw Schema

```json
{
  "id": "app.atmobb.discussion.thread",
  "defs": {
    "main": {
      "key": "tid",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "board",
          "title"
        ],
        "properties": {
          "body": {
            "type": "array",
            "items": {
              "refs": [
                "app.atmobb.richtext.block#text",
                "app.atmobb.richtext.block#quote",
                "app.atmobb.richtext.block#code",
                "app.atmobb.richtext.block#image"
              ],
              "type": "union"
            },
            "maxLength": 200
          },
          "poll": {
            "ref": "#poll",
            "type": "ref"
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 640,
              "maxGraphemes": 64
            },
            "maxLength": 8
          },
          "board": {
            "type": "string",
            "format": "at-uri",
            "description": "The app.atmobb.forum.board this thread belongs to. The board URI's authority is the forum's DID."
          },
          "title": {
            "type": "string",
            "maxLength": 3000,
            "maxGraphemes": 300
          },
          "createdAt": {
            "type": "string",
            "format": "datetime"
          }
        }
      },
      "description": "A discussion thread (topic). Lives in the author's repo, pointing at a board in a forum's repo."
    },
    "poll": {
      "type": "object",
      "required": [
        "options"
      ],
      "properties": {
        "options": {
          "type": "array",
          "items": {
            "type": "string",
            "maxLength": 1000,
            "maxGraphemes": 100
          },
          "maxLength": 10,
          "minLength": 2
        },
        "closesAt": {
          "type": "string",
          "format": "datetime"
        },
        "question": {
          "type": "string",
          "maxLength": 3000,
          "maxGraphemes": 300
        },
        "multipleChoice": {
          "type": "boolean"
        }
      },
      "description": "An embedded poll. Votes are app.atmobb.poll.vote records referencing this thread."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
