Fix generateInvite deprecation

This commit is contained in:
Dragon Fire
2020-10-29 00:33:11 -04:00
parent 31d1edcbd3
commit b8071ca857
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ module.exports = class InfoCommand extends Command {
}
async run(msg) {
const invite = await this.client.generateInvite(permissions);
const invite = await this.client.generateInvite({ permissions });
const repoURL = `https://github.com/${XIAO_GITHUB_REPO_USERNAME}/${XIAO_GITHUB_REPO_NAME}`;
const embed = new MessageEmbed()
.setColor(0x00AE86)
+1 -1
View File
@@ -14,7 +14,7 @@ module.exports = class InviteCommand extends Command {
}
async run(msg) {
const invite = await this.client.generateInvite(permissions);
const invite = await this.client.generateInvite({ permissions });
return msg.say(stripIndents`
Invite me using this link:
<${invite}>