Skip to content

Commit

Permalink
CommandsAPI: Fix spread overwriting omitted subcommand options (#3057)
Browse files Browse the repository at this point in the history
  • Loading branch information
EtorixDev authored Dec 3, 2024
1 parent 3f61fe7 commit dd87f36
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/api/Commands/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ function registerSubCommands(cmd: Command, plugin: string) {
const subCmd = {
...cmd,
...o,
options: o.options !== undefined ? o.options : undefined,
type: ApplicationCommandType.CHAT_INPUT,
name: `${cmd.name} ${o.name}`,
id: `${o.name}-${cmd.id}`,
Expand Down

0 comments on commit dd87f36

Please sign in to comment.