From c27f16f753ec4d039d425653c5b3440e310fb93f Mon Sep 17 00:00:00 2001 From: DuAnti7423 <82730507+DuAnti7423@users.noreply.github.com> Date: Sun, 23 May 2021 10:39:18 +0200 Subject: [PATCH] Update botSay.js ID Support, Boolean Changes --- commands/botSay.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/botSay.js b/commands/botSay.js index 9d59134..be74da2 100755 --- a/commands/botSay.js +++ b/commands/botSay.js @@ -13,9 +13,9 @@ module.exports = { description: supportbot.BotSayDesc, 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.Staff); + let SupportStaff = message.guild.roles.cache.find(adminRole => adminRole.name === supportbot.Staff) || message.guild.roles.cache.find(adminRole => adminRole.id === supportbot.Staff) console.log(`\u001b[32m`, `[${supportbot.Bot_Name}]:`, `\u001b[32m`, `${message.author.tag} has executed ${supportbot.Prefix}${supportbot.BotSay}!`);