diff options
| -rw-r--r-- | commands/leave.js | 2 |
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(); }; |
