From 47644213e2656eb0f14b5085b9f673fc01a42a35 Mon Sep 17 00:00:00 2001 From: Androz2091 Date: Sat, 26 Dec 2020 19:46:17 +0100 Subject: [PATCH] :zap: Use options object for generateInvite() --- commands/General/help.js | 4 +++- commands/General/stats.js | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/commands/General/help.js b/commands/General/help.js index 301df4e4fd..34629529d1 100644 --- a/commands/General/help.js +++ b/commands/General/help.js @@ -123,7 +123,9 @@ class Help extends Command { embed.addField("\u200B", message.translate("misc:STATS_FOOTER", { donateLink: "https://patreon.com/Androz2091", dashboardLink: "https://dashboard.atlanta-bot.fr", - inviteLink: await this.client.generateInvite("ADMINISTRATOR"), + inviteLink: await this.client.generateInvite({ + permissions: ["ADMINISTRATOR"] + }), githubLink: "https://github.com/Androz2091", supportLink: "https://discord.atlanta-bot.fr" })); diff --git a/commands/General/stats.js b/commands/General/stats.js index 9152484735..e246eb7c72 100644 --- a/commands/General/stats.js +++ b/commands/General/stats.js @@ -45,7 +45,9 @@ class Stats extends Command { statsEmbed.addField(this.client.customEmojis.link+" "+message.translate("general/stats:LINKS_TITLE"), message.translate("misc:STATS_FOOTER", { donateLink: "https://patreon.com/Androz2091", dashboardLink: "https://dashboard.atlanta-bot.fr", - inviteLink: await this.client.generateInvite("ADMINISTRATOR"), + inviteLink: await this.client.generateInvite({ + permissions: ["ADMINISTRATOR"] + }), githubLink: "https://github.com/Androz2091", supportLink: "https://discord.atlanta-bot.fr" })