Ещё больше фиксов

This commit is contained in:
JonnyBro 2022-01-04 01:40:36 +05:00
parent 282d79077c
commit a09a37eb76
3 changed files with 5 additions and 3 deletions

View file

@ -84,7 +84,9 @@ class Profile extends Command {
message.channel.send({
embeds: [profileEmbed],
files: [userData.getAchievements()]
files: [{
attachment: userData.getAchievements()
}]
}); // Send the embed in the current channel
}
};

View file

@ -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();
if (!firstMember) return message.error("fun/lovecalc:MISSING");
const secondMember = message.mentions.members

View file

@ -43,7 +43,7 @@ class Clear extends Command {
const user = message.mentions.users.first();
let messages = await message.channel.messages.fetch({
limit: 100
limit: amount
});
if (user) messages = messages.filter((m) => m.author.id === user.id);
if (messages.length > amount) messages.length = parseInt(amount, 10);