/** @ignore */
const Command = require('./../Command');
/** @ignore */
const Module = require('./utils/ChannelModule');

/**
 * Modlog Command, allows server managers to toggle the
 * modlog module on or off for any given channel.
 *
 * @extends {Command}
 */
class ModlogCommand extends Command {

    /**
     * Sets up the command by providing the prefix, command trigger, any
     * aliases the command might have and additional options that
     * might be usfull for the abstract command class.
     */
    constructor() {
        super('modlog', ['mlog'], {
            allowDM: false,
            middleware: [
                'require.user:general.manage_server',
    /**
     * Executes the given command.
     *
     * @param  {IUser}     sender   The Discordie user object that ran the command.
     * @param  {IMessage}  message  The Discordie message object that triggered the command.
     * @param  {Array}     args     The arguments that was parsed to the command.
     * @return {mixed}
     */
    onCommand(sender, message, args) {
        return Module.toggle(message, 'modlog', 'ModLog');
    }
}

module.exports = ModlogCommand;
                'throttle.guild:1,5'
            ]
        });
    }
