Discord.js | Cannot read property 'setParent' of undefined | category create
问题 client.on('message', async (message, user) => { if(message.content == "!createcategory"){ //const name = message.content.replace('!createcategory ', '') if(message.guild.channels.cache.find(c => c.name == message.author.username && c.type == "category") === undefined){ message.guild.channels.create(message.author.username, { type: 'category', permissionOverwrites: [ {id: message.guild.id, deny: ['VIEW_CHANNEL']}, {id: message.author.id, allow: ['VIEW_CHANNEL']}, ] }).then(parent => { //