Skip to content

Commit 02c75ea

Browse files
committed
add docs to text display component info
1 parent 751a71d commit 02c75ea

File tree

2 files changed

+19
-13
lines changed

2 files changed

+19
-13
lines changed

src/Discord.Net.Interactions/Info/Commands/Components/TextDisplayComponentInfo.cs

Lines changed: 0 additions & 13 deletions
This file was deleted.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
using Discord.Interactions.Builders;
2+
3+
namespace Discord.Interactions;
4+
5+
/// <summary>
6+
/// Represents the <see cref="ModalComponentInfo"/> class for <see cref="ComponentType.TextDisplay"/> type.
7+
/// </summary>
8+
public class TextDisplayComponentInfo : ModalComponentInfo
9+
{
10+
/// <summary>
11+
/// Gets the content of the text display.
12+
/// </summary>
13+
public string Content { get; }
14+
15+
internal TextDisplayComponentInfo(TextDisplayComponentBuilder builder, ModalInfo modal) : base(builder, modal)
16+
{
17+
Content = Content;
18+
}
19+
}

0 commit comments

Comments
 (0)