Без реакций в ЛС

This commit is contained in:
JonnyBro 2022-02-20 16:47:58 +05:00
parent f5091f6d67
commit 2d58660e0f

View file

@ -18,7 +18,7 @@ class ServersList extends Command {
} }
async run(message, args, data) { async run(message, args, data) {
if (message.channel.type !== "DM") message.delete(); if (message.deletable) message.delete();
let i0 = 0, let i0 = 0,
i1 = 10, i1 = 10,
@ -50,6 +50,7 @@ class ServersList extends Command {
embeds: [embed] embeds: [embed]
}); });
if (message.channel.type !== "DM") {
await msg.react("⬅"); await msg.react("⬅");
await msg.react("➡"); await msg.react("➡");
await msg.react("❌"); await msg.react("❌");
@ -121,6 +122,7 @@ class ServersList extends Command {
await reaction.users.remove(message.author.id); await reaction.users.remove(message.author.id);
}); });
} }
}
} }
module.exports = ServersList; module.exports = ServersList;