mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-11-25 14:44:58 +05:00
Фикс ошибки
This commit is contained in:
parent
e463faf06a
commit
2436879e67
1 changed files with 2 additions and 2 deletions
|
@ -18,7 +18,7 @@ class ServersList extends Command {
|
|||
}
|
||||
|
||||
async run(message, args, data) {
|
||||
if (!message.channel.type != "DM") message.delete();
|
||||
if (!message.channel.type !== "DM") message.delete();
|
||||
|
||||
let i0 = 0,
|
||||
i1 = 10,
|
||||
|
@ -113,7 +113,7 @@ class ServersList extends Command {
|
|||
});
|
||||
};
|
||||
|
||||
if (reaction._emoji.name === "❌") return msg.delete();
|
||||
if (reaction._emoji.name === "❌" && !message.channel.type !== "DM") return msg.delete();
|
||||
|
||||
// Remove the reaction when the user react to the message
|
||||
await reaction.users.remove(message.author.id);
|
||||
|
|
Loading…
Reference in a new issue