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) { 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 repoURL = `https://github.com/${XIAO_GITHUB_REPO_USERNAME}/${XIAO_GITHUB_REPO_NAME}`;
const embed = new MessageEmbed() const embed = new MessageEmbed()
.setColor(0x00AE86) .setColor(0x00AE86)
+1 -1
View File
@@ -14,7 +14,7 @@ module.exports = class InviteCommand extends Command {
} }
async run(msg) { async run(msg) {
const invite = await this.client.generateInvite(permissions); const invite = await this.client.generateInvite({ permissions });
return msg.say(stripIndents` return msg.say(stripIndents`
Invite me using this link: Invite me using this link:
<${invite}> <${invite}>
+2 -2
View File
@@ -1,6 +1,6 @@
{ {
"name": "xiao", "name": "xiao",
"version": "119.34.3", "version": "119.34.4",
"description": "Your personal server companion.", "description": "Your personal server companion.",
"main": "Xiao.js", "main": "Xiao.js",
"scripts": { "scripts": {
@@ -44,7 +44,7 @@
"discord.js": "^12.4.1", "discord.js": "^12.4.1",
"discord.js-commando": "github:discordjs/Commando", "discord.js-commando": "github:discordjs/Commando",
"dotenv": "^8.2.0", "dotenv": "^8.2.0",
"eslint": "^7.12.0", "eslint": "^7.12.1",
"gifencoder": "^2.0.1", "gifencoder": "^2.0.1",
"gm": "^1.23.1", "gm": "^1.23.1",
"html-entities": "^1.3.1", "html-entities": "^1.3.1",