From c68d5ee45e1a724831d4d91d0ef352673cb828ad Mon Sep 17 00:00:00 2001 From: IRONM00N <64110067+IRONM00N@users.noreply.github.com> Date: Tue, 21 Dec 2021 17:44:47 -0500 Subject: fix command args bugs --- src/lib/extensions/discord-akairo/BushCommand.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lib/extensions/discord-akairo') 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; -- cgit