From 500c9ace42327c95dacaef6908ddc71cddadfda2 Mon Sep 17 00:00:00 2001 From: SileNce5k Date: Sun, 27 Mar 2022 22:26:16 +0200 Subject: [PATCH] Fix error when no command found --- commands/info/help.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/commands/info/help.js b/commands/info/help.js index 3b1dd16..a554736 100644 --- a/commands/info/help.js +++ b/commands/info/help.js @@ -56,6 +56,10 @@ module.exports = { break; } } + if(commands === ""){ + fieldName = "Command not found"; + commands = "No command with that name found." + } let regex = //g; commands = commands.replace(regex, prefix) embed.addFields(