From 95150b7cb868b69a5e06d6b4f7a48dd4fe596477 Mon Sep 17 00:00:00 2001 From: Unknown Date: Tue, 13 Mar 2018 17:03:48 -0400 Subject: fix --- commands/Owners Only/modifycredits.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'commands') diff --git a/commands/Owners Only/modifycredits.js b/commands/Owners Only/modifycredits.js index 5187947..69da668 100644 --- a/commands/Owners Only/modifycredits.js +++ b/commands/Owners Only/modifycredits.js @@ -22,10 +22,10 @@ exports.run = async (bot, msg) => { if (!['242775871059001344', '247221105515823104', '236279900728721409', '269516487566426112'].includes(msg.author.id)) return msg.reply('Nope! You need the person who created this bot to use this command.'); let user; - if (!msg.mentions.members.first()) { + if (!msg.mentions.users.first()) { user = msg.author; } else { - user = msg.mentions.members.first(); + user = msg.mentions.users.first(); } var oldbal = bot.plugins.economy.get(user.id); -- cgit v1.2.3