aboutsummaryrefslogtreecommitdiff
path: root/commands/jail.js
diff options
context:
space:
mode:
authorAndrew Lee <alee14498@protonmail.com>2021-07-31 16:38:15 -0400
committerAndrew Lee <alee14498@protonmail.com>2021-07-31 16:38:15 -0400
commit60cd96e366487b9a422ecc685b46a2b300c32be1 (patch)
tree6e71adf12473ca438f10d7716a27a3f0ffc44c3d /commands/jail.js
parent3aa27777a7bd1a9bff798412382db8aad3cbd19a (diff)
downloadAleeBot-60cd96e366487b9a422ecc685b46a2b300c32be1.tar.gz
AleeBot-60cd96e366487b9a422ecc685b46a2b300c32be1.tar.bz2
AleeBot-60cd96e366487b9a422ecc685b46a2b300c32be1.zip
Cleanup; Upgraded to Discord.JS v13; More buttons
Diffstat (limited to 'commands/jail.js')
-rw-r--r--commands/jail.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/commands/jail.js b/commands/jail.js
index a82e1b2..7f6f3a3 100644
--- a/commands/jail.js
+++ b/commands/jail.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: 'jail',
description: 'Jails a member',
usage: 'jail [user]',
- category: '- ALP Exclusive Commands',
+ category: '- Binaryworks Exclusive Commands',
};