From 7de04136e29e634072f70b2e6184c0e038e40e23 Mon Sep 17 00:00:00 2001 From: SileNce5k Date: Mon, 25 Mar 2024 00:45:06 +0100 Subject: [PATCH] Add invalid subcommand error --- commands/misc/fm.js | 1 + 1 file changed, 1 insertion(+) diff --git a/commands/misc/fm.js b/commands/misc/fm.js index faaeb3b..0524169 100644 --- a/commands/misc/fm.js +++ b/commands/misc/fm.js @@ -25,6 +25,7 @@ module.exports = { sendText = await getTopTracks(message.author.id, args); break; default: + sendText = `${args[0]} is not a valid subcommand.\nSee \`${prefix}help fm\` for more info.`; break; } if(args.length < 1){