mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-04 07:46:43 +02:00
18 lines
600 B
JavaScript
18 lines
600 B
JavaScript
const { Command } = require('discord.js-commando');
|
|
|
|
module.exports = class InviteCommand extends Command {
|
|
constructor(client) {
|
|
super(client, {
|
|
name: 'invite',
|
|
group: 'util',
|
|
memberName: 'invite',
|
|
description: 'Sends you an invite for the bot and an invite to my server.'
|
|
});
|
|
}
|
|
|
|
async run(msg) {
|
|
const invite = await this.client.generateInvite('1345846343');
|
|
return msg.say(`Add me to your server with this link:\n${invite}\nOr, come to my server with this link:\n${this.client.options.invite}`);
|
|
}
|
|
};
|