# 创建子频道公告 v2.2.0
将某条消息创建为子频道的公告。
# 使用示例
async function demo() {
let { data } = await client.announceApi.postChannelAnnounce(channelId, messageId);
}
1
2
3
2
3
# 参数说明
字段名 | 必填 | 类型 | 描述 |
---|---|---|---|
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
:
{
"guild_id": "xxxxxx",
"channel_id": "123456",
"message_id": "xxxxxx",
"announces_type": 0,
"recommend_channels": []
}
1
2
3
4
5
6
7
2
3
4
5
6
7