Discord.js 事件channelCreate.setauthor

Discord.js 事件channelCreate.setauthor,discord.js,Discord.js,有没有办法将创建频道的用户放入.setAuthor中?我搜索了一下,但什么也没找到 client.on("channelCreate", function(channel) { const logchannel = channel.guild.channels.cache.find(ch => ch.name === "logchannel") if (!logchannel) return const embed = new Di

有没有办法将创建频道的用户放入.setAuthor中?我搜索了一下,但什么也没找到

  client.on("channelCreate", function(channel) {
  const logchannel = channel.guild.channels.cache.find(ch => ch.name === "logchannel")
  if (!logchannel) return

  const embed = new Discord.MessageEmbed()
  .setTitle("Channel created)
  .setDescription(`Channel <#${channel.id}> has created.`)
  .setTimestamp()
  .setAuthor(//user who created the channel)
  
  logchannel.send(embed)  
})
client.on(“频道创建”,函数(频道){
const logchannel=channel.guild.channels.cache.find(ch=>ch.name==“logchannel”)
如果(!logchannel)返回
const embed=new Discord.MessageEmbed()
.setTitle(“已创建频道”)
.setDescription(`Channel has created.`)
.setTimestamp()文件
.setAuthor(//创建频道的用户)
logchannel.send(嵌入)
})

我认为最好使用,您可能想看看