【问题标题】:event channelCreate .setauthor事件通道创建 .setauthor
【发布时间】:2021-06-30 04:27:42
【问题描述】:

有没有办法将创建频道的用户放入 .setAuthor 中?我在https://discord.js.org/#/docs/main/stable/class/GuildChannel 中搜索过,但一无所获

  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)  
})

【问题讨论】:

    标签: discord.js


    【解决方案1】:

    我觉得最好用AuditLogs,你不妨看看。

    【讨论】:

      猜你喜欢
      • 2019-10-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-12-03
      • 2021-06-17
      • 2017-06-11
      • 1970-01-01
      相关资源
      最近更新 更多