Update blacklistUser.js

ID Support, Boolean Changes
This commit is contained in:
DuAnti7423 committed 2021-05-23 10:39:13 +02:00
1 parent bd33669dba
commit 4842610229
1 file changed
+3 -3
+3 -3
View File
@@ -13,9 +13,9 @@ module.exports = {
description: supportbot.BlacklistDesc,
execute(message, args) {
if (supportbot.DeleteMessages == "true") message.delete();
if (supportbot.DeleteMessages) message.delete();
let SupportStaff = message.guild.roles.cache.find(adminRole => adminRole.name === supportbot.Admin);
let SupportStaff = message.guild.roles.cache.find(adminRole => adminRole.name === supportbot.Admin) || message.guild.roles.cache.find(adminRole => adminRole.id === supportbot.Admin)
console.log(`\u001b[32m`, `[${supportbot.Bot_Name}]:`, `\u001b[32m`, `${message.author.tag} has executed ${supportbot.Prefix}${supportbot.BlacklistUser}!`);
@@ -28,7 +28,7 @@ module.exports = {
return message.channel.send({ embed: NoPerms });
}
let locateChannel = message.guild.channels.cache.find(ModLogChannel => ModLogChannel.name === supportbot.ModLogChannel);
let locateChannel = message.guild.channels.cache.find(ModLogChannel => ModLogChannel.name === supportbot.ModLogChannel) || message.guild.channels.cache.find(ModLogChannel => ModLogChannel.id === supportbot.ModLogChannel)
const user = message.mentions.members.first() || message.guild.members.cache.get(args[0]);