Skip to content

Commit 9ce1136

Browse files
committed
reference/cv2: minor formatting
Signed-off-by: Luca Zeuch <[email protected]>
1 parent bc4c12c commit 9ce1136

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

content/docs/reference/components-v2.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Displays plain text content, supporting markdown. Can be a string or a slice of
2626
"text" "Component Builder v2 test!"
2727
}}
2828
29-
{{ /* or */ }}
29+
{{/* or */}}
3030
3131
{{ $text := componentBuilder
3232
"text" (cslice
@@ -42,14 +42,19 @@ 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 optional accessory: a button **or** a thumbnail.
4646

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

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

5151
`thumbnail`: sdict with keys media, description, spoiler (optional)
5252

53+
###### Example
54+
55+
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.
57+
5358
```yag
5459
{{ $section := componentBuilder
5560
"section" (sdict
@@ -199,7 +204,8 @@ Select menus for user options. see [cmenu](/docs/reference/templates/functions#c
199204

200205
### Interactive Components
201206

202-
Mix of buttons and menus, auto-distributed. see [cbutton](/docs/reference/templates/functions#cbutton)/[cmenu](/docs/reference/templates/functions#cmenu).
207+
Mix of buttons and menus, auto-distributed. see [cbutton](/docs/reference/templates/functions#cbutton) and
208+
[cmenu](/docs/reference/templates/functions#cmenu), respectively.
203209

204210
Accepts:
205211

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 optional accessory: 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)