module.exports.run = async (bot, message, args) => { let ticketreason = args[1]; let ticketname = \"ticket\" + ticketreason; message.guild.createChannel
I do it in the following way, and I go through each of the channels.
let nameOfChannel = "lista-" + message.author.username.toLowerCase(); // Check if channel exist if ((message.guild.channels.cache.find(c => c.name.toLowerCase() === nameOfChannel))) { ---- code continue here----