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

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({ 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
} }
}; };

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(); 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

View file

@ -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);