mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-04 15:56:52 +02:00
Fix generateInvite deprecation
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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}>
|
||||
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "xiao",
|
||||
"version": "119.34.3",
|
||||
"version": "119.34.4",
|
||||
"description": "Your personal server companion.",
|
||||
"main": "Xiao.js",
|
||||
"scripts": {
|
||||
@@ -44,7 +44,7 @@
|
||||
"discord.js": "^12.4.1",
|
||||
"discord.js-commando": "github:discordjs/Commando",
|
||||
"dotenv": "^8.2.0",
|
||||
"eslint": "^7.12.0",
|
||||
"eslint": "^7.12.1",
|
||||
"gifencoder": "^2.0.1",
|
||||
"gm": "^1.23.1",
|
||||
"html-entities": "^1.3.1",
|
||||
|
||||
Reference in New Issue
Block a user