fix no argument response to /reload

This commit is contained in:
Nathaniel Mason 2022-04-22 21:02:05 +01:00
parent f921a67608
commit 9c28f9f228
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ module.exports = {
handle (client, config, user, args) { handle (client, config, user, args) {
if (user.id === config.ownerID) { 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 = ''; let returnMessage = '';
args.forEach(async (arg) => { args.forEach(async (arg) => {