diff options
Diffstat (limited to 'commands')
| -rw-r--r-- | commands/setmoney.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/setmoney.js b/commands/setmoney.js index 6f547c8..f6ca64f 100644 --- a/commands/setmoney.js +++ b/commands/setmoney.js @@ -25,7 +25,7 @@ module.exports.run = async (client, message, args) => { const { RichEmbed } = require('discord.js'); const economy = require('discord-eco') - if (!['242775871059001344',].includes(message.author.id) + !message.member.permissions.has('ADMINISTRATOR')) return message.reply("It looks like that you don't have the permissions to set your money.") + if (!['242775871059001344',].includes(message.author.id) || !message.member.permissions.has('ADMINISTRATOR')) return message.reply("It looks like that you don't have the permissions to set your money.") if (!args[0]) { message.reply('You need a amount.'); |
