From 4773ecfe1fc3c42d4b4980cb94141d0c9b8b4c85 Mon Sep 17 00:00:00 2001 From: JonnyBro Date: Tue, 4 Jan 2022 01:15:19 +0500 Subject: [PATCH] =?UTF-8?q?=D0=95=D1=89=D1=91=20=D1=84=D0=B8=D0=BA=D1=81?= =?UTF-8?q?=D1=8B?= 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 dc7c79b3..59c379c8 100644 --- a/commands/Owner/servers-list.js +++ b/commands/Owner/servers-list.js @@ -61,7 +61,7 @@ class ServersList extends Command { }); collector.on("collect", async (reaction) => { - if (reaction._emoji.name === "⬅") { + if (reaction._emoji.name === "⬅" && !message.channel.type !== "DM") { // Updates variables i0 = i0 - 10; i1 = i1 - 10; @@ -87,7 +87,7 @@ class ServersList extends Command { }); }; - if (reaction._emoji.name === "➡") { + if (reaction._emoji.name === "➡" && !message.channel.type !== "DM") { // Updates variables i0 = i0 + 10; i1 = i1 + 10;