diff options
Diffstat (limited to 'commands/Owners Only/leaveguild.js')
| -rw-r--r-- | commands/Owners Only/leaveguild.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/commands/Owners Only/leaveguild.js b/commands/Owners Only/leaveguild.js index 2af5244..f214b8b 100644 --- a/commands/Owners Only/leaveguild.js +++ b/commands/Owners Only/leaveguild.js @@ -7,11 +7,15 @@ * * *************************************/ module.exports.run = async (bot, msg) => { - if (!['242775871059001344', '247221105515823104', '236279900728721409', msg.guild.owner.user.id].includes(msg.author.id)) return msg.reply('Nope! You need the person who created this bot or the owner of this guild to use this command.'); msg.channel.send('Alright, I\'m leaving the server now. Bye everyone!') msg.guild.leave(); }; + exports.checkPermission = (bot, member) => { + if (!['242775871059001344', '247221105515823104', '236279900728721409'].includes(member.id)) return false; + return true; + } + exports.conf = { aliases: [], guildOnly: true, |
