galactic-bot/structure/client/components/settings/administration/DisabledCommands.js

43 lines
984 B
JavaScript
Raw Normal View History

const { Setting } = require('../../../../interfaces/');
2020-07-28 05:00:24 +02:00
class DisabledCommandsSetting extends Setting {
constructor(client) {
super(client, {
2020-07-28 05:00:24 +02:00
name: 'disabledCommands',
module: 'administration',
aliases: ['disabled', 'disableCommands', 'disableCommand', 'disableCmd', 'disableCmds', 'disabledCmds', 'disable'],
usage: "<+|-|list> [command..]",
resolve: 'GUILD',
default: {
disabledCommands: []
},
2020-05-24 10:54:33 +02:00
examples: [
2020-07-28 05:00:24 +02:00
'list',
'add command:ban',
'remove command:ban'
],
archivable: false
});
}
async handle(message, params) {
//NOTE: Todo, finish this.
}
fields(guild) {
return [
{
name: '》 Disabled Commands',
value: `\`uhhh\``
}
];
}
}
2020-07-28 05:00:24 +02:00
module.exports = DisabledCommandsSetting;