I'm creating a ticket / modmail bot and I want to have a command that you can select the category on where the threads (tickets) will go, with that said I am looking for some clarification on whether this is the right code for that.
const channel = message.mentions.channels.first() || message.guild.channels.cache.find(c => c.id === args[0])
if(!channel) return message.reply(unablec)
Yes, there is more code that follows this line but I am more concerned on this.
Appreciate the help. (discord.js 12)