@@ -90,63 +90,55 @@ export default class Starboard extends BotComponent {
9090 this . staff_flag_log = await this . utilities . get_channel ( this . wheatley . channels . staff_flag_log ) ;
9191
9292 commands . add (
93- new TextBasedCommandBuilder ( "add-negative-emoji " , EarlyReplyMode . visible )
93+ new TextBasedCommandBuilder ( "starboard-manage " , EarlyReplyMode . visible )
9494 . set_category ( "Admin utilities" )
95- . set_description ( "Register a negative emoji" )
96- . add_string_option ( {
97- title : "emojis" ,
98- description : "emojis" ,
99- required : true ,
100- } )
95+ . set_description ( "Manage starboard configuration" )
10196 . set_permissions ( Discord . PermissionFlagsBits . Administrator )
102- . set_handler ( this . add_negative_emoji . bind ( this ) ) ,
103- ) ;
104-
105- commands . add (
106- new TextBasedCommandBuilder ( "add-delete-emoji" , EarlyReplyMode . visible )
107- . set_category ( "Admin utilities" )
108- . set_description ( "Register a delete emoji" )
109- . add_string_option ( {
110- title : "emojis" ,
111- description : "emojis" ,
112- required : true ,
113- } )
114- . set_permissions ( Discord . PermissionFlagsBits . Administrator )
115- . set_handler ( this . add_delete_emoji . bind ( this ) ) ,
116- ) ;
117-
118- commands . add (
119- new TextBasedCommandBuilder ( "add-ignored-emoji" , EarlyReplyMode . visible )
120- . set_category ( "Admin utilities" )
121- . set_description ( "Register an ignored emoji" )
122- . add_string_option ( {
123- title : "emojis" ,
124- description : "emojis" ,
125- required : true ,
126- } )
127- . set_permissions ( Discord . PermissionFlagsBits . Administrator )
128- . set_handler ( this . add_ignored_emoji . bind ( this ) ) ,
129- ) ;
130-
131- commands . add (
132- new TextBasedCommandBuilder ( "add-repost-emoji" , EarlyReplyMode . visible )
133- . set_category ( "Admin utilities" )
134- . set_description ( "Register a repost emoji" )
135- . add_string_option ( {
136- title : "emojis" ,
137- description : "emojis" ,
138- required : true ,
139- } )
140- . set_permissions ( Discord . PermissionFlagsBits . Administrator )
141- . set_handler ( this . add_repost_emoji . bind ( this ) ) ,
142- ) ;
143-
144- commands . add (
145- new TextBasedCommandBuilder ( "list-starboard-config" , EarlyReplyMode . visible )
146- . set_category ( "Admin utilities" )
147- . set_description ( "List starboard config" )
148- . set_permissions ( Discord . PermissionFlagsBits . Administrator )
149- . set_handler ( this . list_config . bind ( this ) ) ,
97+ . add_subcommand (
98+ new TextBasedCommandBuilder ( "add-negative-emoji" , EarlyReplyMode . visible )
99+ . set_description ( "Register a negative emoji" )
100+ . add_string_option ( {
101+ title : "emojis" ,
102+ description : "emojis" ,
103+ required : true ,
104+ } )
105+ . set_handler ( this . add_negative_emoji . bind ( this ) ) ,
106+ )
107+ . add_subcommand (
108+ new TextBasedCommandBuilder ( "add-delete-emoji" , EarlyReplyMode . visible )
109+ . set_description ( "Register a delete emoji" )
110+ . add_string_option ( {
111+ title : "emojis" ,
112+ description : "emojis" ,
113+ required : true ,
114+ } )
115+ . set_handler ( this . add_delete_emoji . bind ( this ) ) ,
116+ )
117+ . add_subcommand (
118+ new TextBasedCommandBuilder ( "add-ignored-emoji" , EarlyReplyMode . visible )
119+ . set_description ( "Register an ignored emoji" )
120+ . add_string_option ( {
121+ title : "emojis" ,
122+ description : "emojis" ,
123+ required : true ,
124+ } )
125+ . set_handler ( this . add_ignored_emoji . bind ( this ) ) ,
126+ )
127+ . add_subcommand (
128+ new TextBasedCommandBuilder ( "add-repost-emoji" , EarlyReplyMode . visible )
129+ . set_description ( "Register a repost emoji" )
130+ . add_string_option ( {
131+ title : "emojis" ,
132+ description : "emojis" ,
133+ required : true ,
134+ } )
135+ . set_handler ( this . add_repost_emoji . bind ( this ) ) ,
136+ )
137+ . add_subcommand (
138+ new TextBasedCommandBuilder ( "list-config" , EarlyReplyMode . visible )
139+ . set_description ( "List starboard config" )
140+ . set_handler ( this . list_config . bind ( this ) ) ,
141+ ) ,
150142 ) ;
151143 }
152144
0 commit comments