mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-11-22 13:14:58 +05:00
Ещё больше фиксов
This commit is contained in:
parent
282d79077c
commit
a09a37eb76
3 changed files with 5 additions and 3 deletions
|
@ -84,7 +84,9 @@ class Profile extends Command {
|
||||||
|
|
||||||
message.channel.send({
|
message.channel.send({
|
||||||
embeds: [profileEmbed],
|
embeds: [profileEmbed],
|
||||||
files: [userData.getAchievements()]
|
files: [{
|
||||||
|
attachment: userData.getAchievements()
|
||||||
|
}]
|
||||||
}); // Send the embed in the current channel
|
}); // Send the embed in the current channel
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
@ -18,7 +18,7 @@ class Lovecalc extends Command {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
async run(message) {
|
async run(message, args, data) {
|
||||||
const firstMember = message.mentions.members.filter(m => m.id !== message.author.id).first();
|
const firstMember = message.mentions.members.filter(m => m.id !== message.author.id).first();
|
||||||
if (!firstMember) return message.error("fun/lovecalc:MISSING");
|
if (!firstMember) return message.error("fun/lovecalc:MISSING");
|
||||||
const secondMember = message.mentions.members
|
const secondMember = message.mentions.members
|
||||||
|
|
|
@ -43,7 +43,7 @@ class Clear extends Command {
|
||||||
const user = message.mentions.users.first();
|
const user = message.mentions.users.first();
|
||||||
|
|
||||||
let messages = await message.channel.messages.fetch({
|
let messages = await message.channel.messages.fetch({
|
||||||
limit: 100
|
limit: amount
|
||||||
});
|
});
|
||||||
if (user) messages = messages.filter((m) => m.author.id === user.id);
|
if (user) messages = messages.filter((m) => m.author.id === user.id);
|
||||||
if (messages.length > amount) messages.length = parseInt(amount, 10);
|
if (messages.length > amount) messages.length = parseInt(amount, 10);
|
||||||
|
|
Loading…
Reference in a new issue