File tree Expand file tree Collapse file tree
src/Disc.NET.Client.SDK/Messages/Components Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- using Disc . NET . Client . SDK . Messages . Components . Buttons ;
2- using Disc . NET . Client . SDK . Messages . Components . Enums ;
1+ using Disc . NET . Client . SDK . Messages . Components . Enums ;
32
43namespace Disc . NET . Client . SDK . Messages . Components
54{
6- public class ActionRowButtonComponentBuilder : IMessageComponentBuilder
5+ public sealed class ActionRowButtonComponentBuilder : IMessageComponentBuilder
76 {
87 public string ? Id { get ; }
98 public List < object > Components { get ; } = [ ] ;
@@ -19,23 +18,23 @@ public ActionRowButtonComponentBuilder(string? id)
1918
2019 public ActionRowButtonComponentBuilder AddButton ( IMessageComponent component )
2120 {
22- Components . Add ( component ) ;
21+ Components . Add ( component ) ;
2322 return this ;
2423 }
2524
2625 public ActionRowButtonComponentBuilder AddButtons ( List < IMessageComponent > components )
2726 {
28- Components . AddRange ( components ) ;
29- return this ;
27+ Components . AddRange ( components ) ;
28+ return this ;
3029 }
31- public object Build ( )
30+ public object Build ( )
3231 {
3332 return new
3433 {
3534 id = Id ,
3635 type = MessageComponentType . ActionRow ,
3736 components = Components
38- } ;
37+ } ;
3938 }
4039 }
4140}
Original file line number Diff line number Diff line change 11using Disc . NET . Client . SDK . Messages . Components . Enums ;
2- using Disc . NET . Client . SDK . Messages . Components . Selects ;
32
43namespace Disc . NET . Client . SDK . Messages . Components
54{
6- public class ActionRowSelectMenuComponentBuilder : IMessageComponentBuilder
5+ public sealed class ActionRowSelectMenuComponentBuilder : IMessageComponentBuilder
76 {
87
98 public ActionRowSelectMenuComponentBuilder ( )
@@ -17,12 +16,12 @@ public ActionRowSelectMenuComponentBuilder(string? id)
1716
1817 public ActionRowSelectMenuComponentBuilder AddMenu ( IMessageComponent component )
1918 {
20- Components . Add ( component ) ;
19+ Components . Add ( component ) ;
2120 return this ;
2221 }
2322
2423
25- public string ? Id { get ; set ; }
24+ public string ? Id { get ; set ; }
2625 public List < object > Components { get ; } = [ ] ;
2726
2827 public object Build ( )
@@ -32,7 +31,7 @@ public object Build()
3231 id = Id ,
3332 type = MessageComponentType . ActionRow ,
3433 components = Components
35- } ;
34+ } ;
3635 }
3736 }
3837
You can’t perform that action at this time.
0 commit comments