From 9c28f9f228e54657609535bcf627c3ba0567c15b Mon Sep 17 00:00:00 2001 From: Nathaniel Mason Date: Fri, 22 Apr 2022 21:02:05 +0100 Subject: [PATCH] fix no argument response to /reload --- commands/reload.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/reload.js b/commands/reload.js index 8ea1693..80addfe 100644 --- a/commands/reload.js +++ b/commands/reload.js @@ -21,7 +21,7 @@ module.exports = { handle (client, config, user, args) { if (user.id === config.ownerID) { - if (!args) return client.generateErrorMessage('You forgot to provide anything to reload, you pillock', user.displayAvatarURL()); + if (!args.length) return client.generateErrorMessage('You forgot to provide anything to reload, you pillock', user.displayAvatarURL()); let returnMessage = ''; args.forEach(async (arg) => {