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/interrogate.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/interrogate.js')
| -rw-r--r-- | commands/interrogate.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/commands/interrogate.js b/commands/interrogate.js index 1b9b97b..16a1887 100644 --- a/commands/interrogate.js +++ b/commands/interrogate.js @@ -18,10 +18,10 @@ * * *************************************/ module.exports.run = async (client, message, args) => { - if (message.guild.id != '243022206437687296') return message.reply('This is a ALP exclusive command.'); + if (message.guild.id != '243022206437687296') return message.reply('This is a Binaryworks exclusive command.'); - if (!message.member.hasPermission('BAN_MEMBERS')) return message.reply('It looks like that you don\'t have the permissions to jail members.'); - if (!message.guild.member(client.user).hasPermission('MANAGE_ROLES')) return message.reply('Uhh... I don\'t have permission to jail members.'); + if (!message.member.permissions.has('BAN_MEMBERS')) return message.reply('It looks like that you don\'t have the permissions to jail members.'); + if (!message.guild.members.cache.get(client.user.id).permissions.has('MANAGE_ROLES')) return message.reply('Uhh... I don\'t have permission to jail members.'); const member = message.mentions.members.first(); if (!member) return await message.reply('Uhh... Please mention a member first.'); @@ -38,5 +38,5 @@ exports.help = { name: 'interrogate', description: 'Interrogates a member', usage: 'interrogate [user]', - category: '- ALP Exclusive Commands', + category: '- Binaryworks Exclusive Commands', }; |
