Friday, September 20, 2024 1:29:47 AM
> settings

Customize


Authenticate

> clear.js
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);
        }
    }
}
All opinions represented herein are my own
- © 2024 itsthedevman
- build 340fbb8