modmail/structure/commands/Disable.js

23 lines
437 B
JavaScript
Raw Normal View History

2021-12-22 10:30:50 +01:00
const Command = require('../Command');
class Ping extends Command {
constructor (client) {
super(client, {
name: 'disable',
aliases: [ 'enable' ]
});
}
async execute ({ _caller }, { clean }) {
if (_caller === 'enable') this.client.modmail.enable();
else this.client.modmail.disable(clean);
return `:thumbsup: ${_caller}d`;
}
}
module.exports = Ping;