Skip to content

Commit 5567e17

Browse files
committed
fix: handle undefined type for description fallback
1 parent 6ea8345 commit 5567e17

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -699,7 +699,8 @@ export class AppCommandHandler {
699699
}
700700

701701
if (
702-
commandFileData.command.type === ApplicationCommandType.ChatInput &&
702+
(!commandFileData.command.type ||
703+
commandFileData.command.type === ApplicationCommandType.ChatInput) &&
703704
!commandFileData.command.description
704705
) {
705706
commandFileData.command.description = `${command.name} command`;

0 commit comments

Comments
 (0)