Ещё фиксы

This commit is contained in:
JonnyBro 2022-01-04 01:15:19 +05:00
parent 2436879e67
commit 4773ecfe1f

View file

@ -61,7 +61,7 @@ class ServersList extends Command {
}); });
collector.on("collect", async (reaction) => { collector.on("collect", async (reaction) => {
if (reaction._emoji.name === "⬅") { if (reaction._emoji.name === "⬅" && !message.channel.type !== "DM") {
// Updates variables // Updates variables
i0 = i0 - 10; i0 = i0 - 10;
i1 = i1 - 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 // Updates variables
i0 = i0 + 10; i0 = i0 + 10;
i1 = i1 + 10; i1 = i1 + 10;