From 8dbf162dea07beebfda262622fc07e650b34c41a Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Fri, 19 Apr 2024 17:52:13 -0400 Subject: [PATCH] Fix --- framework/Command.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/framework/Command.js b/framework/Command.js index 3aba2ebe..249d7d12 100644 --- a/framework/Command.js +++ b/framework/Command.js @@ -40,12 +40,13 @@ module.exports = class Command { } usage(forcedArgs) { - const args = typeof forcedArgs === 'undefined' ? this.args + let args = typeof forcedArgs === 'undefined' ? this.args .map(arg => { const hasDefault = arg.default !== null; return `${hasDefault ? '[' : '<'}${arg.label || arg.key}${hasDefault ? ']' : '>'}`; }).join(' ') : forcedArgs; - return `\`${this.client.commandPrefix}${this.name} ${args}\` or \`@${this.client.user.tag} ${this.name} ${args}\``; + args = args ? ` ${args}` : ''; + return `\`${this.client.commandPrefix}${this.name}${args}\` or \`@${this.client.user.tag} ${this.name}${args}\``; } disable() {