Skip to content

Commit 7423cbe

Browse files
committed
fixed more linter errors, no more linter errors now hopefully
1 parent ab48eb6 commit 7423cbe

File tree

1 file changed

+15
-11
lines changed

1 file changed

+15
-11
lines changed

content/docs/reference/components-v2.md

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,11 @@ description = "Be fancier, use components!"
66

77
## componentBuilder
88

9-
`componentBuilder` is a helper for building Discord’s new Components V2 (sections, buttons, menus, galleries, etc.) in YAGPDB custom commands.
9+
`componentBuilder` is a helper for building Discord’s new Components V2 (sections, buttons, menus, galleries, etc.)
1010

11-
It provides a simple template-based way to assemble complex message layouts without needing to write raw JSON. Instead, you describe components with key–value pairs (sdict, strings, arrays), and `componentBuilder` handles conversion and validation for you.
11+
It provides a simple template-based way to assemble complex message layouts without needing to write raw JSON.
12+
13+
You describe components with key–value pairs and `componentBuilder` handles conversion and validation for you.
1214

1315
This makes it easier to:
1416

@@ -319,15 +321,17 @@ This example combines text, sections, gallery, files, buttons, menus, and contai
319321

320322
## Component Builder Helper Functions
321323

322-
The `componentBuilder` helper function provides methods to construct, manipulate, and get Discord V2 message components programmatically. These methods allow you to build complex layouts incrementally and retrieve them in a format that Discord understands.
324+
The helper function provides methods to construct, manipulate, and get Discord V2 message components programmatically.
325+
326+
These methods allow you to build complex layouts incrementally and retrieve them in a format that Discord understands.
323327

324328
### componentBuilder.Add
325329

326330
Adds a single component entry to the builder under the given key.
327331

328332
- Parameters:
329-
- `key` – The top-level key for the component (e.g., "text", "section", "buttons").
330-
- `value` – The component data (string, sdict, Button, SelectMenu, etc.).
333+
- `key` – The top-level key for the component (e.g., "text", "section", "buttons").
334+
- `value` – The component data (string, sdict, Button, SelectMenu, etc.).
331335

332336
- Example:
333337

@@ -341,12 +345,12 @@ Adds a single component entry to the builder under the given key.
341345
```
342346

343347
### componentBuilder.AddSlice
344-
A
345-
dds multiple components under one key.
348+
349+
Adds multiple components under one key.
346350

347351
- Parameters:
348-
- `key` – The top-level key for the component (e.g., "text", "section", "buttons").
349-
- `values` – The component data (string, sdict, Button, SelectMenu, etc.).
352+
- `key` – The top-level key for the component (e.g., "text", "section", "buttons").
353+
- `values` – The component data (string, sdict, Button, SelectMenu, etc.).
350354

351355
- Example:
352356

@@ -368,7 +372,7 @@ dds multiple components under one key.
368372
Combine another builder into the current one.
369373

370374
- Parameters:
371-
- `other` – The builder to merge.
375+
- `other` – The builder to merge.
372376

373377
- Example:
374378

@@ -395,7 +399,7 @@ Combine another builder into the current one.
395399
Retrieve components stored under a key.
396400

397401
- Parameters:
398-
- `key` – The top-level key for the component (e.g., "text", "section", "buttons").
402+
- `key` – The top-level key for the component (e.g., "text", "section", "buttons").
399403

400404
- Example:
401405

0 commit comments

Comments
 (0)