const {Command} = require('../../lib.js')


    class prune extends Command{
        constructor(client){
            super(client, {
                name: 'prune',
                group:'admin',
                description: 'Rebuilds the channel it was used in.',
                needsAdmin:true,
            })
        }
        async run(message, args){
            //Check administration privilege

            let name = message.channel.name;

            message.channel.clone([name, true, "text"]) 
            
            message.channel.delete();             
        }
}module.exports = prune;