Skip to content

Commit ebd9872

Browse files
committed
fixed all linter errors, finally v2
1 parent 3f6ea5b commit ebd9872

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

content/docs/reference/components-v2.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,4 +486,4 @@ Retrieve components stored under a key.
486486
)}}
487487
488488
{{sendMessage nil $container}}
489-
```
489+
```

content/docs/reference/templates/functions.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -781,11 +781,12 @@ object](/docs/reference/templates/syntax-and-data#message). Is also valid for ep
781781

782782
## Component V2
783783

784-
Components V2 introduces a new way to create interactive and visually appealing message layouts in Discord applications, allowing for greater control over message formatting and user interaction.
784+
Components V2 provides a new way to create interactive and visually appealing message layouts in Discord applications,
785+
making it easier to control message formatting and user interaction while maintaining line length under 120 characters.
785786

786787
### componentBuilder
787788

788-
`componentBuilder` is a helper for building Discord's new Components V2 (sections, buttons, menus, galleries, etc.) in YAGPDB custom commands.
789+
`componentBuilder` simplifies building Discord's ComponentsV2, including buttons, menus, etc, in YAGPDB custom commands.
789790

790791
```yag
791792
{{ $component := componentBuilder (sdict [text] [section] [gallery] [file] [separator] [container] [buttons] [menus] [interactive_components] [allowed_mentions] [reply] [silent] [ephemeral])}}
@@ -813,8 +814,9 @@ All keys are optional, but the Discord API will reject completey empty messages,
813814
- `separator`: Adds spacing between components with the following keys:
814815
- `true`: large separator
815816
- `false` or `nil`: small separator
816-
- `container`: top-level layout component. containers offer the ability to visually encapsulate a collection of components and have an optional customizable accent color bar. with the following keys:
817-
- `components`: [componentbuilder](#componentbuilder) or list of [componentbuilder](#componentbuilder).
817+
- `container`: Top-level layout. Containers offer the ability to visually encapsulate a collection of components,
818+
and have an optional customizable accent color bar. Contains the following keys:
819+
- `components`: [componentBuilder](#componentbuilder) or list of [componentBuilder](#componentbuilder).
818820
- `color`: hex accent color (optional).
819821
- `spoiler`: hides content until revealed (optional).
820822
- `buttons`: Interactive buttons users can click. Can be single or multiple. see [cbutton](#cbutton).
@@ -833,7 +835,9 @@ All keys are optional, but the Discord API will reject completey empty messages,
833835

834836
### Component Builder Functions
835837

836-
The `ComponentBuilder` object provides methods to construct, manipulate, and export Discord V2 message components programmatically. These methods allow you to build complex layouts incrementally and retrieve them in a format that Discord understands.
838+
The `ComponentBuilder` simplifies building Discord's V2 components, allowing complex layouts to be built incrementally.
839+
It provides methods for constructing, manipulating, and exporting components in a format Discord understands,
840+
ensuring line length doesn't exceed 120 characters.
837841

838842
#### ComponentBuilder.Add
839843

0 commit comments

Comments
 (0)