From f5091f6d6741f15b23d0a3101d7aa8669bf39cdd Mon Sep 17 00:00:00 2001 From: JonnyBro Date: Sat, 19 Feb 2022 21:11:14 +0500 Subject: [PATCH] =?UTF-8?q?=D0=9C=D0=B5=D0=BB=D0=BA=D0=B8=D0=B5=20=D0=BF?= =?UTF-8?q?=D1=80=D0=B0=D0=B2=D0=BA=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- commands/Owner/servers-list.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/commands/Owner/servers-list.js b/commands/Owner/servers-list.js index b782fde1..8c296c72 100644 --- a/commands/Owner/servers-list.js +++ b/commands/Owner/servers-list.js @@ -61,7 +61,9 @@ class ServersList extends Command { }); collector.on("collect", async (reaction) => { - if (reaction._emoji.name === "⬅" && !message.channel.type !== "DM") { + if (message.channel.type === "DM") return; + + if (reaction._emoji.name === "⬅") { // Updates variables i0 = i0 - 10; i1 = i1 - 10; @@ -87,7 +89,7 @@ class ServersList extends Command { }); } - if (reaction._emoji.name === "➡" && !message.channel.type !== "DM") { + if (reaction._emoji.name === "➡") { // Updates variables i0 = i0 + 10; i1 = i1 + 10; @@ -113,7 +115,7 @@ class ServersList extends Command { }); } - if (reaction._emoji.name === "❌" && !message.channel.type !== "DM") return msg.delete(); + if (reaction._emoji.name === "❌") return msg.delete(); // Remove the reaction when the user react to the message await reaction.users.remove(message.author.id);