From f23f15c9725775fbda0b34c45f5115b7d00d2808 Mon Sep 17 00:00:00 2001 From: Two Date: Mon, 27 Jul 2020 10:44:06 -0400 Subject: [PATCH] Update announce.js --- commands/announce.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/commands/announce.js b/commands/announce.js index fff1a6e..a6e1f68 100644 --- a/commands/announce.js +++ b/commands/announce.js @@ -13,7 +13,9 @@ module.exports = { description: supportbot.AnnounceDesc, execute(message, args) { - + + if (supportbot.DeleteMessages == "true") message.delete(); + let locateChannel = message.guild.channels.cache.find(AnnouncementChannel => AnnouncementChannel.name === supportbot.AnnouncementChannel); const errornochannel = new Discord.MessageEmbed() @@ -65,4 +67,4 @@ module.exports = { } -}; \ No newline at end of file +};