@@ -63,11 +63,7 @@ export class CommandKit {
6363 }
6464 }
6565
66- /**
67- * Returns all the commands that CommandKit is handling.
68- *
69- * @returns An array of command objects
70- */
66+ /** @returns An array of objects of all the commands that CommandKit is handling. */
7167 get commands ( ) : CommandObject [ ] {
7268 const commands = this . #data. commands . map ( ( cmd ) => {
7369 const { run, ...command } = cmd ;
@@ -76,4 +72,34 @@ export class CommandKit {
7672
7773 return commands ;
7874 }
75+
76+ /** @returns The path to the commands folder which was set when instantiating CommandKit. */
77+ get commandsPath ( ) : string | undefined {
78+ return this . #data. commandsPath ;
79+ }
80+
81+ /** @returns The path to the events folder which was set when instantiating CommandKit. */
82+ get eventsPath ( ) : string | undefined {
83+ return this . #data. eventsPath ;
84+ }
85+
86+ /** @returns The path to the validations folder which was set when instantiating CommandKit. */
87+ get validationsPath ( ) : string | undefined {
88+ return this . #data. validationsPath ;
89+ }
90+
91+ /** @returns An array of all the developer user IDs which was set when instantiating CommandKit. */
92+ get devUserIds ( ) : string [ ] {
93+ return this . #data. devUserIds || [ ] ;
94+ }
95+
96+ /** @returns An array of all the developer guild IDs which was set when instantiating CommandKit. */
97+ get devGuildIds ( ) : string [ ] {
98+ return this . #data. devGuildIds || [ ] ;
99+ }
100+
101+ /** @returns An array of all the developer role IDs which was set when instantiating CommandKit. */
102+ get devRoleIds ( ) : string [ ] {
103+ return this . #data. devRoleIds || [ ] ;
104+ }
79105}
0 commit comments