mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-11-25 14:44:58 +05:00
Без реакций в ЛС
This commit is contained in:
parent
f5091f6d67
commit
2d58660e0f
1 changed files with 59 additions and 57 deletions
|
@ -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;
|
Loading…
Reference in a new issue