Section¶
A [section] groups up to 3 text lines with a single accessory - either a [thumbnail] or a [button].
Syntax¶
With a Thumbnail accessory¶
With a Thumbnail + description and spoiler¶
[section]
Some description text
[thumbnail url=https://example.com/thumb.png description=Alt_text spoiler=true]
[/section]
With a Button accessory¶
[section]
Pick your color role
[button role=123456789012345678 color=green]Green[/button]
[/section]
Section Rules¶
- Non-tag, non-empty lines inside
[section]...[/section]become text children (max 3). - Text grouping follows the same rules as top-level text - see Text Display for details.
- The last
[thumbnail]or[button]found inside the block becomes the accessory. - A section must have exactly 1 accessory.
Thumbnail Accessory¶
[thumbnail] can only appear as a section accessory - it cannot be used outside a [section] block.
Thumbnail Attributes¶
| Attribute | Required | Values | Default | Description |
|---|---|---|---|---|
url |
✅ | http:// or https:// URL |
- | The image URL for the thumbnail |
description |
❌ | String (≤ 256 chars) | none | Alt text / description for the thumbnail |
spoiler |
❌ | true false |
false |
Whether to hide the thumbnail behind a spoiler blur |
Limits¶
| Constraint | Value |
|---|---|
| Text children per section | 1 - 3 |
| Accessories per section | exactly 1 |
| Thumbnail description length | ≤ 256 characters |