fix no argument response to /reload
This commit is contained in:
parent
f921a67608
commit
9c28f9f228
|
@ -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) => {
|
||||||
|
|
Reference in New Issue