From 6bdc923abb011eccd7c64df7e1b9e433e9fb5623 Mon Sep 17 00:00:00 2001 From: derpystuff <3515180-derpystuff@users.noreply.gitlab.com> Date: Wed, 9 Aug 2023 11:59:15 +0200 Subject: [PATCH] dont show empty default arguments --- commands/message/core/help.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/message/core/help.js b/commands/message/core/help.js index 9b8d08a..66d5308 100644 --- a/commands/message/core/help.js +++ b/commands/message/core/help.js @@ -58,7 +58,7 @@ function createCommandPage(context, prefix, command){ let argument = `-${a._name} <${a._type.replace('bool','true/false')}>` argument = pill(argument) if(a.help) argument += ` ​ ${a.help}` - argument += `\n ​ ​ ​ ​ ${smallPill(`default: ${a.default}`)} ​ ​ ` + if(a.default !== "") argument += `\n ​ ​ ​ ​ ${smallPill(`default: ${a.default}`)} ​ ​ ` if(!a.required) argument += smallPill('optional') args.push(argument) }