diff options
| -rw-r--r-- | commands/Owners Only/modifycredits.js | 4 |
1 files changed, 2 insertions, 2 deletions
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); |
