From 4f25cfa0dd291b4897cc512e14f76ed0dbaf00dc Mon Sep 17 00:00:00 2001 From: DuAnti7423 <82730507+DuAnti7423@users.noreply.github.com> Date: Sun, 23 May 2021 10:40:20 +0200 Subject: [PATCH] Update suggest.js ID Support, Boolean Changes --- commands/suggest.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/suggest.js b/commands/suggest.js index f512c68..ee0d5c0 100755 --- a/commands/suggest.js +++ b/commands/suggest.js @@ -12,9 +12,9 @@ module.exports = { description: supportbot.SuggestionDesc, execute(message, args) { - if (supportbot.DeleteMessages == "true") message.delete(); + if (supportbot.DeleteMessages) message.delete(); - let locateChannel = message.guild.channels.cache.find(SuggestionChannel => SuggestionChannel.name === supportbot.SuggestionChannel); + let locateChannel = message.guild.channels.cache.find(SuggestionChannel => SuggestionChannel.name === supportbot.SuggestionChannel) || message.guild.channels.cache.find(SuggestionChannel => SuggestionChannel.id === supportbot.SuggestionChannel) console.log(`\u001b[32m`, `[${supportbot.Bot_Name}]:`, `\u001b[32m`, `${message.author.tag} has executed ${supportbot.Prefix}${supportbot.SuggestCommand}!`);