mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-20 21:44:48 +02:00
Guard
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
const { Command } = require('discord.js-commando');
|
||||
|
||||
module.exports = class GuardCommand extends Command {
|
||||
constructor(client) {
|
||||
super(client, {
|
||||
name: 'invite-guard',
|
||||
aliases: ['guard'],
|
||||
group: 'util',
|
||||
memberName: 'invite-guard',
|
||||
description: 'Configures auto-delete for invites.',
|
||||
guildOnly: true
|
||||
});
|
||||
}
|
||||
|
||||
hasPermission(msg) {
|
||||
return msg.member.hasPermission('ADMINISTRATOR');
|
||||
}
|
||||
|
||||
run(msg) {
|
||||
msg.guild.settings.set('guard', true);
|
||||
return msg.say('Invite Guard is now active.');
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user