mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-04 07:46:43 +02:00
27 lines
632 B
JavaScript
27 lines
632 B
JavaScript
const Command = require('../../structures/Command');
|
|
const { stripIndents } = require('common-tags');
|
|
|
|
module.exports = class InviteCommand extends Command {
|
|
constructor(client) {
|
|
super(client, {
|
|
name: 'invite',
|
|
aliases: ['join'],
|
|
group: 'util',
|
|
memberName: 'invite',
|
|
description: 'Responds with Xiao\'s invite links.',
|
|
guarded: true
|
|
});
|
|
}
|
|
|
|
async run(msg) {
|
|
const invite = await this.client.generateInvite(372632641);
|
|
return msg.say(stripIndents`
|
|
To invite me to your server, use this link:
|
|
<${invite}>
|
|
|
|
Or, join my home server:
|
|
${this.client.options.invite || 'Coming soon...'}
|
|
`);
|
|
}
|
|
};
|