title: Delete a channel with a reaction
body: <p>I need help, I'm looking for a way to delete a channel created automatically by the bot via the "
  
  <p>I present you my code below.</p>
  
  <p>And if by any chance you know how to delete a voice channel using discord.js.</p>
  
  <p>Thank you in advance!
  Sincerely</p>
  
  <p>ticket.js</p>
  
  <p><a href="https://pastebin.com/rpsbPMNT" rel="nofollow noreferrer">https://pastebin.com/rpsbPMNT</a></p>
  
  <p>close.js</p>
  
  <pre><code>const discord = require("discord.js");
  const botconfig = require("../botconfig.json");
  
  module.exports.run = async (bot, message, args) =&gt; {
  
      // Id van category van tickets.
      const categoryId = botconfig.ticketcategory;
  
      // Als bericht in ticket kanaal is dan verwijder kanaal ander zend bericht
      if (message.channel.parentID == categoryId) {
  
          message.channel.delete();
  
      } else {
  
          message.channel.send("Please do this command in a ticket channel.");
  
      }
  
      var embedCloseTicket = new discord.RichEmbed()
          .setTitle("Hello, " + message.channel.name)
          .setDescription("Your ticket is marked as **complete**. Do you want to make a new one then do !ticket")
          .setFooter("Ticket closed!");
  
      message.author.send(embedCloseTicket);
  
  }
  
  module.exports.help = {
      name: "close",
      aliases: ["ticketclose", "ticketsupportclose"]
  }
  </code></pre>