创建频道全局公告

将某个子频道的某条消息创建为频道全局公告。

使用示例

  1. async function demo() {
  2. let { data } = await client.announceApi.postGuildAnnounce(guildId, channelId, messageId);
  3. }

参数说明

字段名 必填 类型 描述
guildId string 频道 ID
channelId string 子频道 ID
messageId string 消息 ID

返回说明

返回 Announce 对象。

Announce

字段名 类型 描述
guild_id string 频道 ID
channel_id string 子频道 ID
message_id string 消息 ID
announce_type number 推荐类别 0:成员公告; 1:欢迎公告
recommend_channels RecommendChannel[] 数组 推荐子频道详情列表

RecommendChannel

字段名 类型 描述
channel_id string 子频道 ID
introduce string 推荐语

返回示例

data

  1. {
  2. "guild_id": "xxxxxx",
  3. "channel_id": "123456",
  4. "message_id": "xxxxxx",
  5. "announces_type": 0,
  6. "recommend_channels": []
  7. }