diff --git a/commands/Economy/profile.js b/commands/Economy/profile.js index 86fcce5a..f99ddbd0 100644 --- a/commands/Economy/profile.js +++ b/commands/Economy/profile.js @@ -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 } }; diff --git a/commands/Fun/lovecalc.js b/commands/Fun/lovecalc.js index 593067ca..e01f738a 100644 --- a/commands/Fun/lovecalc.js +++ b/commands/Fun/lovecalc.js @@ -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 diff --git a/commands/Moderation/clear.js b/commands/Moderation/clear.js index 08ad4e6d..15d41cda 100644 --- a/commands/Moderation/clear.js +++ b/commands/Moderation/clear.js @@ -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);