2020-05-21 12:47:58 +02:00
|
|
|
const { Setting } = require('../../../../interfaces/');
|
|
|
|
|
2020-07-28 05:00:24 +02:00
|
|
|
class DisabledCommandsSetting extends Setting {
|
2020-05-21 12:47:58 +02:00
|
|
|
|
|
|
|
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..]",
|
2020-05-21 12:47:58 +02:00
|
|
|
resolve: 'GUILD',
|
|
|
|
default: {
|
2020-08-08 00:21:28 +02:00
|
|
|
disabledCommands: []
|
2020-05-21 12:47:58 +02:00
|
|
|
},
|
2020-05-24 10:54:33 +02:00
|
|
|
examples: [
|
2020-07-28 05:00:24 +02:00
|
|
|
'list',
|
2020-08-08 00:21:28 +02:00
|
|
|
'add command:ban',
|
|
|
|
'remove command:ban'
|
2020-08-16 09:27:49 +02:00
|
|
|
],
|
|
|
|
archivable: false
|
2020-05-21 12:47:58 +02:00
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
async handle(message, params) {
|
2021-06-09 02:35:52 +02:00
|
|
|
|
|
|
|
//NOTE: Todo, finish this.
|
2020-05-21 12:47:58 +02:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
fields(guild) {
|
|
|
|
return [
|
|
|
|
{
|
2020-08-16 09:27:49 +02:00
|
|
|
name: '》 Disabled Commands',
|
2021-06-09 02:35:52 +02:00
|
|
|
value: `\`uhhh\``
|
2020-05-21 12:47:58 +02:00
|
|
|
}
|
|
|
|
];
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2020-07-28 05:00:24 +02:00
|
|
|
module.exports = DisabledCommandsSetting;
|