CommandsAPI: Fix spread overwriting omitted subcommand options (#3057)
This commit is contained in:
parent
3f61fe722d
commit
dd87f360d7
1 changed files with 1 additions and 0 deletions
|
@ -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}`,
|
||||
|
|
Loading…
Reference in a new issue