我需要创建一个除发送消息的人之外的覆盖通道(无法查看,无法发送)。
我当前的代码:
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.");
}
}
慕无忌1623718
相关分类