diff options
Diffstat (limited to 'commands/leaveguild.js')
| -rw-r--r-- | commands/leaveguild.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/commands/leaveguild.js b/commands/leaveguild.js index 146512c..f88f0bb 100644 --- a/commands/leaveguild.js +++ b/commands/leaveguild.js @@ -18,8 +18,8 @@ * * *************************************/ module.exports.run = async (client, message) => { - 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!'); + if (!['242775871059001344', message.guild.ownerID].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.'); + await message.channel.send('Leaving server. If that\'s a mistake, you can re-invite me...'); message.guild.leave(); }; |
