diff options
| author | Andrew Lee <alee14498@protonmail.com> | 2021-07-31 16:38:15 -0400 |
|---|---|---|
| committer | Andrew Lee <alee14498@protonmail.com> | 2021-07-31 16:38:15 -0400 |
| commit | 60cd96e366487b9a422ecc685b46a2b300c32be1 (patch) | |
| tree | 6e71adf12473ca438f10d7716a27a3f0ffc44c3d /commands/leaveguild.js | |
| parent | 3aa27777a7bd1a9bff798412382db8aad3cbd19a (diff) | |
| download | AleeBot-60cd96e366487b9a422ecc685b46a2b300c32be1.tar.gz AleeBot-60cd96e366487b9a422ecc685b46a2b300c32be1.tar.bz2 AleeBot-60cd96e366487b9a422ecc685b46a2b300c32be1.zip | |
Cleanup; Upgraded to Discord.JS v13; More buttons
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(); }; |
