mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-04 07:46:43 +02:00
27 lines
686 B
JavaScript
27 lines
686 B
JavaScript
const Command = require('../../structures/Command');
|
|
const { stripIndents } = require('common-tags');
|
|
const permissions = require('../../assets/json/permissions');
|
|
|
|
module.exports = class InviteCommand extends Command {
|
|
constructor(client) {
|
|
super(client, {
|
|
name: 'invite',
|
|
group: 'util',
|
|
memberName: 'invite',
|
|
description: 'Responds with the bot\'s invite links.',
|
|
guarded: true
|
|
});
|
|
}
|
|
|
|
async run(msg) {
|
|
const invite = await this.client.generateInvite(permissions);
|
|
return msg.say(stripIndents`
|
|
Invite me using this link:
|
|
<${invite}>
|
|
|
|
Join my home server for support and announcements:
|
|
${this.client.options.invite || 'Coming soon...'}
|
|
`);
|
|
}
|
|
};
|