File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed
src/Discord.Net.Interactions
Builders/Modals/Components Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff 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 ) ;
Original file line number Diff line number Diff line change @@ -8,6 +8,9 @@ namespace Discord.Interactions;
88/// </summary>
99public 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 )
You can’t perform that action at this time.
0 commit comments