From a09a37eb761b2a12e02e8e453031bd1e1f43d3ae Mon Sep 17 00:00:00 2001 From: JonnyBro Date: Tue, 4 Jan 2022 01:40:36 +0500 Subject: [PATCH] =?UTF-8?q?=D0=95=D1=89=D1=91=20=D0=B1=D0=BE=D0=BB=D1=8C?= =?UTF-8?q?=D1=88=D0=B5=20=D1=84=D0=B8=D0=BA=D1=81=D0=BE=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- commands/Economy/profile.js | 4 +++- commands/Fun/lovecalc.js | 2 +- commands/Moderation/clear.js | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) 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);