let allowedUser = message.guild.roles.cache.filter(role => role.permissions.has("KICK_MEMBERS")) let ticketChannel = await message.guild.channels.create(`${message.author.id}-ticket`, { type: " text", permissionOverwrites: [ { id: message.guild.id, deny: ["VIEW_CHANNEL"], }, { id: message.author.id, allow: ["VIEW_CHANNEL"]}, ], }); ticketChannel.overwritePermissions(allowedUser, { SEND_MESSAGES: true, VIEW_CHANNEL: true })