Skip to content

Commit

Permalink
feat: nodesdk消息撤回接口添加隐藏小灰条能力
Browse files Browse the repository at this point in the history
  • Loading branch information
Joy-Wang committed May 12, 2022
1 parent 11e7aaa commit 01d2fc2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/develop/nodesdk/message/delete_message.md
Expand Up @@ -6,14 +6,15 @@

- 管理员可以撤回普通成员的消息。
- 频道主可以撤回所有人的消息。
- 增加hideTip选项,控制是否显示撤回消息的小灰条。

:::

## 使用示例

```javascript
async function demo() {
let { data } = await client.messageApi.deleteMessage(channelID, messageID);
let { data } = await client.messageApi.deleteMessage(channelID, messageID, hideTip);
}
```

Expand All @@ -23,6 +24,7 @@ async function demo() {
| --------- | ---- | ------ | -------------------------------- |
| channelID || string | [子频道 ID](../model/channel.md) |
| messageID || string | [消息 ID](../model/message.md) |
| hideTip || boolean | 选填,是否隐藏提示小灰条,true 为隐藏,false 为显示。默认为false |

## 返回说明

Expand Down

0 comments on commit 01d2fc2

Please sign in to comment.