diff options
Diffstat (limited to 'src/lib/extensions/discord-akairo')
-rw-r--r-- | src/lib/extensions/discord-akairo/BushCommand.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/extensions/discord-akairo/BushCommand.ts b/src/lib/extensions/discord-akairo/BushCommand.ts index 5111c19..ae3dcb2 100644 --- a/src/lib/extensions/discord-akairo/BushCommand.ts +++ b/src/lib/extensions/discord-akairo/BushCommand.ts @@ -381,8 +381,8 @@ export class BushCommand extends Command { newSlashArgs.push(newArg as SlashOption); } } - newOptions.args = newTextArgs; - newOptions.slashOptions = options_.slashOptions ?? newSlashArgs; + if (newTextArgs.length > 0) newOptions.args = newTextArgs; + if (newSlashArgs.length > 0) newOptions.slashOptions = options_.slashOptions ?? newSlashArgs; } type perm = PermissionResolvable | PermissionResolvable[] | MissingPermissionSupplier; |