@@ -838,12 +838,27 @@ export class Command extends AkairoCommand {
838838 return commands ;
839839 }
840840
841- getCommandsV2Data ( ) {
841+ getCommandsV2Data ( ) : CommandsV2Command {
842842 const defaultLanguage = this . client . getLanguage ( "en-US" ) ;
843843 const languages = this . client . languages . modules ;
844844 return {
845845 id : `${ this . categoryID } /${ this . id } ` as `${string } /${string } `,
846846 name : this . parent ? this . id . replace ( `${ this . parent } -` , "" ) : this . id ,
847+ fullName : ( this . parent
848+ ? this . parentCommand . parent
849+ ? [
850+ this . parentCommand . parentCommand . id ,
851+ this . parentCommand . id . replace (
852+ `${ this . parentCommand . parent } -` ,
853+ ""
854+ ) ,
855+ this . id
856+ . replace ( `${ this . parent } -` , "" )
857+ . replace ( `${ this . parentCommand . parent } -` , "" ) ,
858+ ]
859+ : [ this . parentCommand . id , this . id . replace ( `${ this . parent } -` , "" ) ]
860+ : [ this . id ]
861+ ) . join ( " " ) ,
847862 category : this . categoryID ,
848863 parent : this . parent ,
849864 description :
@@ -957,7 +972,9 @@ export interface ArgumentOptions extends AkairoArgumentOptions {
957972export interface CommandsV2Command {
958973 id : `${string } /${string } `;
959974 name : string ;
975+ fullName : string ;
960976 category : string ;
977+ parent : string ;
961978 description : ReturnType < Command [ "description" ] > ;
962979 localisedDescription : {
963980 [ k : string ] : ReturnType < ArgumentOptions [ "description" ] > ;
@@ -977,7 +994,9 @@ export interface CommandsV2Command {
977994 autocomplete : ArgumentOptions [ "autocomplete" ] ;
978995 choices : ArgumentOptions [ "choices" ] ;
979996 } [ ] ;
997+ subCommands : CommandsV2Command [ ] ;
980998 guilds : Command [ "guilds" ] ;
999+ popular : boolean ;
9811000 channel : Command [ "channel" ] ;
9821001 availableViaSlash : Command [ "enableSlashCommand" ] ;
9831002 ownerOnly : Command [ "ownerOnly" ] ;
0 commit comments