From 56825a80c2f81f13e7e1b9d820fb343bd4b70414 Mon Sep 17 00:00:00 2001 From: JonnyBro Date: Mon, 7 Feb 2022 12:45:55 +0500 Subject: [PATCH] =?UTF-8?q?=D0=A4=D0=B8=D0=BA=D1=81=D0=B8=D0=BA=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- commands/General/help.js | 1 + commands/Moderation/clear.js | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/commands/General/help.js b/commands/General/help.js index 93286376..0fd7fbf3 100644 --- a/commands/General/help.js +++ b/commands/General/help.js @@ -93,6 +93,7 @@ class Help extends Command { embed.addField("\u200B", message.translate("misc:STATS_FOOTER", { dashboardLink: "https://dashboard.jaba.pp.ua/", docsLink: "https://jaba.pp.ua/docs/", + inviteLink: this.client.generateInvite({ scopes: ["bot"], permissions: [Discord.Permissions.FLAGS.ADMINISTRATOR] }), donateLink: "https://qiwi.com/n/JONNYBRO/", owner: data.config.owner.id })); diff --git a/commands/Moderation/clear.js b/commands/Moderation/clear.js index 738955b3..774d68d6 100644 --- a/commands/Moderation/clear.js +++ b/commands/Moderation/clear.js @@ -55,14 +55,14 @@ class Clear extends Command { let toDelete = null; if (user) { - toDelete = await message.success("moderation/clear:CLEARED_MEMBER", { + toDelete = await message.channel.send(message.translate("moderation/clear:CLEARED_MEMBER", { amount: `${amount} ${message.getNoun(amount, message.translate("misc:NOUNS:MESSAGES:1"), message.translate("misc:NOUNS:MESSAGES:2"), message.translate("misc:NOUNS:MESSAGES:5"))}`, username: user.tag - }); + })); } else { - toDelete = await message.success("moderation/clear:CLEARED", { + toDelete = await message.channel.send(message.translate("moderation/clear:CLEARED", { amount: `${amount} ${message.getNoun(amount, message.translate("misc:NOUNS:MESSAGES:1"), message.translate("misc:NOUNS:MESSAGES:2"), message.translate("misc:NOUNS:MESSAGES:5"))}` - }); + })); } setTimeout(function () {