galactic-bot/structure/client/components/commands/administration/MassBan.js

85 lines
2.5 KiB
JavaScript
Raw Normal View History

const { Command } = require('../../../../interfaces/');
const { Ban } = require('../../../../moderation/infractions/');
class MassBanCommand extends Command {
constructor(client) {
super(client, {
name: 'massban',
module: 'administration',
usage: "<member..> [duration] [reason]",
clientPermissions: ['BAN_MEMBERS'],
memberPermissions: ['BAN_MEMBERS'],
aliases: [],
examples: [
"@nolan#2887 @Navy.gif#1998 24h raiding the server"
],
restricted: true,
2021-06-11 03:08:31 +02:00
archivable: false,
arguments: [
{
name: 'points',
aliases: ['point', 'modpoints', 'modpoint', 'pts', 'pt'],
type: 'INTEGER',
types: ['VERBAL', 'FLAG'],
usage: '<amount>',
default: (guild) => {
return guild._settings.moderationPoints.points.KICK;
},
min: 0, max: 100,
ignoreInvalid: true,
required: true
},
{
name: 'expiration',
aliases: ['expire', 'expires', 'expirations'],
type: 'TIME',
types: ['FLAG'],
usage: '<time>',
default: (guild) => {
return guild._settings.moderationPoints.expirations.KICK;
}
},
{
name: 'force',
type: 'BOOLEAN',
types: ['FLAG'],
default: true
},
{
name: 'days',
aliases: ['day'],
type: 'INTEGER',
types: ['FLAG'],
usage: '<days>',
default: 1,
min: 1, max: 7,
ignoreInvalid: true
},
{
name: 'silent',
type: 'BOOLEAN',
types: ['FLAG'],
default: true
}
],
guildOnly: true,
showUsage: true,
throttling: {
usages: 2,
duration: 5
}
});
this.client = client;
}
async execute(message, { qParams }) {
}
}
module.exports = MassBanCommand;