summaryrefslogtreecommitdiff
path: root/commands
diff options
context:
space:
mode:
authorAlee <alee14498@gmail.com>2018-03-29 22:07:24 -0400
committerAlee <alee14498@gmail.com>2018-03-29 22:07:24 -0400
commit4efbca5dcf5019adf8b4d121c479573b98019749 (patch)
treedb60b8b8a5961b31c93a3d67635ef4e8566a8149 /commands
parent6c4adaaefa890038aec7a4d6cfd30fba98fc0693 (diff)
downloadAleeBot-4efbca5dcf5019adf8b4d121c479573b98019749.tar.gz
AleeBot-4efbca5dcf5019adf8b4d121c479573b98019749.tar.bz2
AleeBot-4efbca5dcf5019adf8b4d121c479573b98019749.zip
fixes
Diffstat (limited to 'commands')
-rw-r--r--commands/setmoney.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/commands/setmoney.js b/commands/setmoney.js
index f609552..6f547c8 100644
--- a/commands/setmoney.js
+++ b/commands/setmoney.js
@@ -25,8 +25,7 @@
module.exports.run = async (client, message, args) => {
const { RichEmbed } = require('discord.js');
const economy = require('discord-eco')
- if (!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)) return
+ 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.');