Skip to content

Commit 78b6e2c

Browse files
authored
Merge branch 'master' into semantic-line-feeds
2 parents 5a5a30e + 9019100 commit 78b6e2c

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

content/docs/reference/components-v2.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,17 +43,17 @@ Can be a string or a slice of strings.
4343

4444
### Section
4545

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

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

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

52-
`thumbnail`: sdict with keys media, description, spoiler (optional)
52+
`thumbnail`: sdict with keys media, description, spoiler
5353

5454
###### Example
5555

56-
For brevity, this example shows both a button and a thumbnail within a single section, but only one of those accessories can be used per section.
56+
For brevity, this example shows both a button and a thumbnail within a single section, but only one of those accessories 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
@@ -826,7 +826,7 @@ Returns a complex message object with the given components.
826826
All keys are optional, but the Discord API will reject completey empty messages, so some content is required.
827827

828828
- `text`: A string or a slice of strings.
829-
- `section`: A layout block that shows text with one optional accessory: a button **or** a thumbnail with the following keys:
829+
- `section`: A layout block that shows text with one mandatory accessory: either a button or a thumbnail with the following keys:
830830
- `text`: A string or a slice of strings.
831831
- `button`: A [button object](#cbutton).
832832
- `thumbnail`: An sdict with the following keys:

content/learn/advanced/custom-interactions/creating-interactive-elements.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ We do that by calling the [`complexMessage`](docs/reference/templates/functions#
1717
Finally, we send the message.
1818

1919
```yag
20-
{{ $button := cbutton "label" "My Cool Button" "custom-id" "buttons-duck" }}
20+
{{ $button := cbutton "label" "My Cool Button" "custom_id" "buttons-duck" }}
2121
{{ $m := complexMessage "buttons" $button }}
2222
{{ sendMessage nil $m }}
2323
```

0 commit comments

Comments
 (0)