We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f00ec13 commit 8446380Copy full SHA for 8446380
packages/commandkit/src/app/commands/Context.ts
@@ -308,6 +308,17 @@ export class Context<
308
return this.commandkit.commandHandler.resolveMessageCommandName(maybeAlias);
309
}
310
311
+ /**
312
+ * Gets the invoked command name (could be an alias for message commands)
313
+ */
314
+ public get invokedCommandName(): string {
315
+ if (this.isInteraction()) {
316
+ return this.interaction.commandName;
317
+ }
318
+
319
+ return this.config.messageCommandParser!.getCommand();
320
321
322
/**
323
* Gets the command options based on the execution mode.
324
*/
0 commit comments