This commit is contained in:
nolan 2021-06-10 18:08:31 -07:00
parent a278987cc2
commit b796e3fe06
6 changed files with 9 additions and 12 deletions

View File

@ -16,7 +16,7 @@ class MassBanCommand extends Command {
"@nolan#2887 @Navy.gif#1998 24h raiding the server"
],
restricted: true,
hidden: true,
archivable: false,
arguments: [
{
name: 'points',

View File

@ -59,7 +59,8 @@ class SettingsCommand extends Command {
const type = !message.guild || args.user ? 'USER' : 'GUILD';
if(type === 'GUILD') {
const permissions = this.client.permissions.execute(message, message.command, ['ADMINISTRATOR', 'MANAGE_GUILD']);
const permissions = await this.client.permissions.execute(message, message.command, ['ADMINISTRATOR', 'MANAGE_GUILD']);
console.log(permissions);
if(permissions.error) return message.respond(message.format('C_SETTINGS_MISSINGPERMISSIONS'), {
emoji: 'failure'
});

View File

@ -22,7 +22,8 @@ class MusicTasteCommand extends Command {
default: true
}
],
disabled: true
disabled: true,
archivable: false
});
this.client = client;

View File

@ -23,7 +23,8 @@ class LockdownCommand extends Command {
throttling: {
usages: 2,
duration: 10
}
},
archivable: false
});
}

View File

@ -24,11 +24,6 @@ class UnbanCommand extends Command {
type: 'BOOLEAN',
types: ['FLAG'],
default: true
},
{
name: 'search',
type: 'STRING',
types: ['FLAG', 'VERBAL']
}
],
guildOnly: true,
@ -45,8 +40,6 @@ class UnbanCommand extends Command {
async execute(message, { qParams }) {
// TODO: Implement search of banlist
const { parsed, parameters } = await this.client.resolver.infinite(qParams, [
this.client.resolver.resolveMember.bind(this.client.resolver),
this.client.resolver.resolveUser.bind(this.client.resolver)

View File

@ -23,7 +23,8 @@ class UnlockdownCommand extends Command {
throttling: {
usages: 2,
duration: 10
}
},
archivable: false
});
}