Skip to content

Commit 9019100

Browse files
committed
reference/cv2: sections now somehow require one accessory
Signed-off-by: Luca Zeuch <[email protected]>
1 parent 45d723a commit 9019100

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

content/docs/reference/components-v2.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,18 +42,18 @@ Displays plain text content, supporting markdown. Can be a string or a slice of
4242

4343
### Section
4444

45-
A layout block that shows text with one optional accessory: a button **or** a thumbnail.
45+
A layout block that shows text with one mandatory accessory: either a button a thumbnail.
4646

4747
`text`: A string, or slice of strings.
4848

49-
`button`: [Button](/docs/reference/templates/functions#cbutton) (optional)
49+
`button`: [Button](/docs/reference/templates/functions#cbutton)
5050

51-
`thumbnail`: sdict with keys media, description, spoiler (optional)
51+
`thumbnail`: sdict with keys media, description, spoiler
5252

5353
###### Example
5454

5555
For brevity, this example shows both a button and a thumbnail within a single section, but only one of those accessories
56-
can be used per section.
56+
must be used per section.
5757

5858
```yag
5959
{{ $section := componentBuilder

content/docs/reference/templates/functions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -799,7 +799,7 @@ Returns a complex message object with the given components.
799799
All keys are optional, but the Discord API will reject completey empty messages, so some content is required.
800800

801801
- `text`: A string or a slice of strings.
802-
- `section`: A layout block that shows text with one optional accessory: a button **or** a thumbnail with the following keys:
802+
- `section`: A layout block that shows text with one mandatory accessory: either a button or a thumbnail with the following keys:
803803
- `text`: A string or a slice of strings.
804804
- `button`: A [button object](#cbutton).
805805
- `thumbnail`: An sdict with the following keys:

0 commit comments

Comments
 (0)