From 31bad3c2e59a13f8f25c870d0902973825b7cf99 Mon Sep 17 00:00:00 2001 From: Two Date: Mon, 27 Jul 2020 10:43:11 -0400 Subject: [PATCH] Update suggest.js --- commands/suggest.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/commands/suggest.js b/commands/suggest.js index 7ffd398..118f45d 100644 --- a/commands/suggest.js +++ b/commands/suggest.js @@ -12,6 +12,8 @@ module.exports = { description: supportbot.SuggestionDesc, execute(message, args) { + if (supportbot.DeleteMessages == "true") message.delete(); + let locateChannel = message.guild.channels.cache.find(SuggestionChannel => SuggestionChannel.name === supportbot.SuggestionChannel); const errornochannel = new Discord.MessageEmbed() @@ -55,4 +57,4 @@ module.exports = { }); } -}; \ No newline at end of file +};