From ceddd503f8520d1903d37d723d94cd689f7f43d0 Mon Sep 17 00:00:00 2001 From: Two Date: Mon, 27 Jul 2020 10:43:51 -0400 Subject: [PATCH] Update close.js --- commands/close.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/commands/close.js b/commands/close.js index d45fae6..3610fe6 100644 --- a/commands/close.js +++ b/commands/close.js @@ -13,6 +13,8 @@ module.exports = { description: supportbot.CloseTicketDesc, execute(message, args) { + if (supportbot.DeleteMessages == "true") message.delete(); + console.log(`\u001b[32m`, `[${supportbot.Bot_Name}]:`, `\u001b[32m`, `${message.author.tag} has executed ${supportbot.Prefix}${supportbot.CloseTicket}!`); if (!message.channel.name.startsWith( `${supportbot.TicketChannel}-` )) { @@ -144,4 +146,4 @@ module.exports = { } } -}; \ No newline at end of file +};