const ESMCommand = require("../esm_command"); module.exports = class ESMCommand_Clear extends ESMCommand { constructor(bot) { super(bot); this.permissions = { dev_only: true }; } async fromDiscord() { if (this.message.channel.type === 'text') { let messages = await this.message.channel.fetchMessages(); this.message.channel.bulkDelete(messages, true); } } }