skip to Main Content

Javascript – Discord.js creating channel within category

const guild = interaction.guild; const user = interaction.user; const ticketChannelName = ticket-${user.username}` // create category if not exits const category = guild.channels.cache.find(c => c.name == 'TICKETS' && c.type == ChannelType.GuildCategory); console.log() if(!category) { await interaction.guild.channels.create({ name: 'TICKETS', // The name…

VIEW QUESTION
Back To Top
Search