diff options
| author | Alee <alee14498@gmail.com> | 2018-03-29 22:07:58 -0400 |
|---|---|---|
| committer | Alee <alee14498@gmail.com> | 2018-03-29 22:07:58 -0400 |
| commit | 0e69f7de509eb25b73f1c8764e45ef85d6381aa4 (patch) | |
| tree | 124a2fa441143623b84dc01133673de8d3afd8a6 | |
| parent | 4efbca5dcf5019adf8b4d121c479573b98019749 (diff) | |
| download | AleeBot-0e69f7de509eb25b73f1c8764e45ef85d6381aa4.tar.gz AleeBot-0e69f7de509eb25b73f1c8764e45ef85d6381aa4.tar.bz2 AleeBot-0e69f7de509eb25b73f1c8764e45ef85d6381aa4.zip | |
more fixes
| -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.'); |
