File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
packages/commandkit/src/app/handlers Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 1
1
import {
2
+ ApplicationCommandType ,
2
3
AutocompleteInteraction ,
3
4
Awaitable ,
4
5
Collection ,
@@ -679,7 +680,7 @@ export class AppCommandHandler {
679
680
data : {
680
681
command : {
681
682
name : command . name ,
682
- description : `${ command . name } commands ` ,
683
+ description : `${ command . name } command ` ,
683
684
type : 1 ,
684
685
} ,
685
686
} ,
@@ -697,6 +698,13 @@ export class AppCommandHandler {
697
698
) ;
698
699
}
699
700
701
+ if (
702
+ commandFileData . command . type === ApplicationCommandType . ChatInput &&
703
+ ! commandFileData . command . description
704
+ ) {
705
+ commandFileData . command . description = `${ command . name } command` ;
706
+ }
707
+
700
708
let handlerCount = 0 ;
701
709
702
710
for ( const [ key , propValidator ] of Object . entries ( commandDataSchema ) as [
You can’t perform that action at this time.
0 commit comments