Skip to content

Commit

Permalink
⚡ Use options object for generateInvite()
Browse files Browse the repository at this point in the history
  • Loading branch information
Androz2091 committed Dec 26, 2020
1 parent bebd6d2 commit 4764421
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion commands/General/help.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}));
Expand Down
4 changes: 3 additions & 1 deletion commands/General/stats.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"
})
Expand Down

0 comments on commit 4764421

Please sign in to comment.