Discord.js - 设置频道描述

Discord.js - Set a channel description

我试图设置频道描述,但在 discord.js 文档中找不到它。有人知道它的代码吗?

您可能正在寻找:channel.setTopic()
示例:

// Set a new channel topic
channel.setTopic('Needs more rate limiting')
  .then(updated => console.log(`Channel's new topic is ${updated.topic}`))
  .catch(console.error);

您可以使用.setTopic() 函数。例如:

<channel>.setTopic('Topic here')