From 60cd96e366487b9a422ecc685b46a2b300c32be1 Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Sat, 31 Jul 2021 16:38:15 -0400 Subject: Cleanup; Upgraded to Discord.JS v13; More buttons --- commands/leaveguild.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'commands/leaveguild.js') 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(); }; -- cgit v1.2.3