From 5392b4aa404f70fe5813d85ceb3e5718e811fcae Mon Sep 17 00:00:00 2001 From: Alee Date: Sun, 15 Apr 2018 18:03:03 -0400 Subject: More changes in the leave command --- commands/leave.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); }; -- cgit v1.2.3