This commit is contained in:
JonnyBro 2022-02-15 01:42:00 +05:00
parent 84868cfe64
commit 36b3b53b72

View file

@ -37,7 +37,7 @@ class Announcement extends Command {
msg.delete(); msg.delete();
collector.stop(true); collector.stop(true);
message.delete(); if (message.deletable) message.delete();
} }
if (tmsg.content.toLowerCase() === message.translate("common:YES").toLowerCase()) { 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"); if (reason === "time") return message.error("misc:TIMES_UP");
}); });
message.delete(); if (message.deletable) message.delete();
} }
}); });