From 36b3b53b72818d735f372efc271c8da46f810b7c Mon Sep 17 00:00:00 2001 From: JonnyBro Date: Tue, 15 Feb 2022 01:42:00 +0500 Subject: [PATCH] =?UTF-8?q?=D0=B5=D1=89=D1=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- commands/Moderation/announcement.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/Moderation/announcement.js b/commands/Moderation/announcement.js index a630fa25..62340c1c 100644 --- a/commands/Moderation/announcement.js +++ b/commands/Moderation/announcement.js @@ -37,7 +37,7 @@ class Announcement extends Command { msg.delete(); collector.stop(true); - message.delete(); + if (message.deletable) message.delete(); } if (tmsg.content.toLowerCase() === message.translate("common:YES").toLowerCase()) { @@ -70,7 +70,7 @@ class Announcement extends Command { if (reason === "time") return message.error("misc:TIMES_UP"); }); - message.delete(); + if (message.deletable) message.delete(); } });