We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6e2ac3f commit 1851628Copy full SHA for 1851628
src/commands/slash-commands/slash-command.discovery.ts
@@ -40,6 +40,14 @@ export class SlashCommandDiscovery extends CommandDiscovery<SlashCommandMeta> {
40
return this.subcommands.ensure(command.getName(), () => command);
41
}
42
43
+ public getSubcommand(name: string) {
44
+ return this.subcommands.get(name);
45
+ }
46
+
47
+ public getSubcommands() {
48
+ return this.subcommands;
49
50
51
public getRawOptions(): Record<string, OptionMeta> {
52
return this.reflector.get(OPTIONS_METADATA, this.getHandler()) ?? {};
53
0 commit comments