summaryrefslogtreecommitdiff
path: root/commands
diff options
context:
space:
mode:
authorAlee <alee14498@gmail.com>2018-04-15 18:03:03 -0400
committerAlee <alee14498@gmail.com>2018-04-15 18:03:03 -0400
commit5392b4aa404f70fe5813d85ceb3e5718e811fcae (patch)
tree498d7ab5f238e6a034cc555ed328027169b7c964 /commands
parent5a35d2dc54cf95fa47e0d32b83b55d44ca03957d (diff)
downloadAleeBot-5392b4aa404f70fe5813d85ceb3e5718e811fcae.tar.gz
AleeBot-5392b4aa404f70fe5813d85ceb3e5718e811fcae.tar.bz2
AleeBot-5392b4aa404f70fe5813d85ceb3e5718e811fcae.zip
More changes in the leave command
Diffstat (limited to 'commands')
-rw-r--r--commands/leave.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/leave.js b/commands/leave.js
index 3abb8e3..9a54555 100644
--- a/commands/leave.js
+++ b/commands/leave.js
@@ -18,7 +18,7 @@
*
* *************************************/
module.exports.run = async (client, message) => {
- if (!['242775871059001344',].includes(message.author.id)) return message.reply('Nope! You need the person who created this bot to use this command.');
+ if (!['242775871059001344', message.guild.owner.user.id].includes(message.author.id)) return message.reply('Nope! You need the person who created this bot or the owner of this guild to use this command.');
message.channel.send('Alright, I\'m leaving the server now. Bye everyone!')
message.guild.leave();
};