我需要創建一個除發送消息的人之外的覆蓋通道(無法查看,無法發送)。我當前的代碼:if (command === "help") { if (!args.length) return message.reply("Try again with a reason.") message.guild.channels.create(message.author.id, "text") .updateOverwrite(message.guild.roles.everyone, { VIEW_CHANNEL: false }) .updateOverwrite(message.author, { VIEW_CHANNEL: true, SEND_MESSAGES: true }) .send(`SUPPORT\n${message.author} has a question.`) message.channel.send("Your wish is my command."); }}
如何在discord.js 中添加具有覆蓋功能的新頻道?
慕斯王
2023-09-14 18:01:01