Skip to content

Commit f2d4253

Browse files
Apply suggestions from code review
Co-authored-by: Mihail Gribkov <[email protected]>
1 parent d97ea4e commit f2d4253

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

docs/guides/components_v2/advanced.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ A parent component, this allows you to put `TextDisplays` (1 - 3) next to eachot
6767

6868
**[Text Display](https://discord.com/developers/docs/components/reference#text-display)**
6969

70-
Just text lol. (With markdown support, just like a regular user)
70+
Just text lol. (With markdown support, just like a regular user; up to 4000 characters)
7171

7272
**[Thumbnail](https://discord.com/developers/docs/components/reference#thumbnail)**
7373

@@ -81,18 +81,19 @@ A component used to display up to `10` images.
8181

8282
**[File](https://discord.com/developers/docs/components/reference#file)**
8383

84-
Used to send a single file.
84+
Used to send a single file. Only supports the `attachment://` protocol.
8585

8686
**[Separator](https://discord.com/developers/docs/components/reference#separator)**
8787

8888
Just something to put space between components (Y axis).
8989
- Spacing can be set to either `1` (small space) or `2` (large space)
90+
- Visibility can be toggled too. (`IsDivider`)
9091

9192
**[Container](https://discord.com/developers/docs/components/reference#container)**
9293

9394
A parent component with a side bar of customisable colour (like embeds).
9495

95-
In Discord.NET, you typically use these components in conjunction with a `ComponentBuilderV2`. The V2 specific components can be added to the builder using the `WithX` fluent/chain methods whereas the other supported components are mostly children of `ActionRows` and can be added as a component array like used below. You need to know what components can be added to which component though to prevent errors (this is why the above sections exist).
96+
In Discord.NET, you typically use these components in conjunction with a `ComponentBuilderV2`. The V2 specific components can be added to the builder using the `WithX` fluent/chain methods whereas the other supported components are mostly children of `ActionRows` and can be added as a component array like used below. You need to know what components can be added to which component though to prevent errors (this is why the above sections exist). If your component structure is wrong, Discord.NET will throw an exception.
9697

9798
This example offers some more insight on how to use them. Below is a component with `TextDisplay`, `MediaGallery` and `ActionRow` (with `Buttons` or `SelectMenu`).
9899

0 commit comments

Comments
 (0)