Skip to content

Commit ab16ba2

Browse files
committed
remove explicit command type + set fallback desc for chat input commands
1 parent 10408f1 commit ab16ba2

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

packages/commandkit/src/app/handlers/AppCommandHandler.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -784,7 +784,7 @@ export class AppCommandHandler {
784784
*/
785785
private async loadCommand(id: string, command: Command) {
786786
try {
787-
// Skip if path is null (directory-only command group)
787+
// Skip if path is null (directory-only command group) - external plugins
788788
if (command.path === null) {
789789
this.loadedCommands.set(id, {
790790
command,
@@ -797,8 +797,6 @@ export class AppCommandHandler {
797797
data: {
798798
command: {
799799
name: command.name,
800-
description: 'No command description set.',
801-
type: ApplicationCommandType.ChatInput,
802800
},
803801
},
804802
});

packages/commandkit/src/app/register/CommandRegistrar.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ export class CommandRegistrar {
5757
collections.push({
5858
...json,
5959
type: ApplicationCommandType.ChatInput,
60+
description: json.description ?? 'No command description set.',
6061
__metadata,
6162
});
6263
}

0 commit comments

Comments
 (0)