Skip to content

Commit fc0c643

Browse files
committed
add inline docs to channelTypes props and method
1 parent 49d1106 commit fc0c643

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

src/Discord.Net.Interactions/Builders/Modals/Components/ChannelSelectComponentBuilder.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ public class ChannelSelectComponentBuilder : SnowflakeSelectComponentBuilder<Cha
1212

1313
protected override ChannelSelectComponentBuilder Instance => this;
1414

15+
/// <summary>
16+
/// Gets the presented channel types for this Channel Select.
17+
/// </summary>
1518
public IReadOnlyCollection<ChannelType> ChannelTypes => _channelTypes.AsReadOnly();
1619

1720
/// <summary>
@@ -46,6 +49,13 @@ public ChannelSelectComponentBuilder AddDefaultValues(params IEnumerable<IChanne
4649
return this;
4750
}
4851

52+
/// <summary>
53+
/// Sets the value of <see cref="ChannelTypes"/>.
54+
/// </summary>
55+
/// <param name="channelTypes">the new value of <see cref="ChannelTypes"/>.</param>
56+
/// <returns>
57+
/// The builder instance.
58+
/// </returns>
4959
public ChannelSelectComponentBuilder WithChannelTypes(params IEnumerable<ChannelType> channelTypes)
5060
{
5161
_channelTypes.AddRange(channelTypes);

src/Discord.Net.Interactions/Info/Components/ChannelSelectComponentInfo.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ namespace Discord.Interactions;
88
/// </summary>
99
public class ChannelSelectComponentInfo : SnowflakeSelectComponentInfo
1010
{
11+
/// <summary>
12+
/// Gets the presented channel types for this Channel Select.
13+
/// </summary>
1114
public IReadOnlyCollection<ChannelType> ChannelTypes { get; }
1215

1316
internal ChannelSelectComponentInfo(Builders.ChannelSelectComponentBuilder builder, ModalInfo modal)

0 commit comments

Comments
 (0)