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

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) {
if (message.channel.type !== "DM") message.delete();
if (message.deletable) message.delete();
let i0 = 0,
i1 = 10,
@ -50,6 +50,7 @@ class ServersList extends Command {
embeds: [embed]
});
if (message.channel.type !== "DM") {
await msg.react("⬅");
await msg.react("➡");
await msg.react("❌");
@ -122,5 +123,6 @@ class ServersList extends Command {
});
}
}
}
module.exports = ServersList;