From 2436879e67fd2ee38085315ec8f6982df35e1817 Mon Sep 17 00:00:00 2001 From: JonnyBro Date: Tue, 4 Jan 2022 01:13:38 +0500 Subject: [PATCH] =?UTF-8?q?=D0=A4=D0=B8=D0=BA=D1=81=20=D0=BE=D1=88=D0=B8?= =?UTF-8?q?=D0=B1=D0=BA=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- commands/Owner/servers-list.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/Owner/servers-list.js b/commands/Owner/servers-list.js index bebcb10e..dc7c79b3 100644 --- a/commands/Owner/servers-list.js +++ b/commands/Owner/servers-list.js @@ -18,7 +18,7 @@ class ServersList extends Command { } async run(message, args, data) { - if (!message.channel.type != "DM") message.delete(); + if (!message.channel.type !== "DM") message.delete(); let i0 = 0, i1 = 10, @@ -113,7 +113,7 @@ class ServersList extends Command { }); }; - if (reaction._emoji.name === "❌") return msg.delete(); + if (reaction._emoji.name === "❌" && !message.channel.type !== "DM") return msg.delete(); // Remove the reaction when the user react to the message await reaction.users.remove(message.author.id);