mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-15 15:57:47 +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}>
|
||||
|
||||
Reference in New Issue
Block a user