Skip to content

Commit

Permalink
document: LLAPI加入del_editor说明
Browse files Browse the repository at this point in the history
  • Loading branch information
Night-stars-1 committed Jan 17, 2024
1 parent fd96586 commit db3e3af
Showing 1 changed file with 25 additions and 2 deletions.
27 changes: 25 additions & 2 deletions src/others/LLAPI.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@
* @Author: Night-stars-1 [email protected]
* @Date: 2023-08-19 13:57:11
* @LastEditors: Night-stars-1 [email protected]
* @LastEditTime: 2023-08-30 22:34:39
* @LastEditTime: 2024-01-17 17:10:09
* @Description:
*
* Copyright (c) 2023 by Night-stars-1, All Rights Reserved.
-->
# LLAPI用法

:::warning 注意
**实验性****未完成**的API可能会发生变动导致不可用
:::
## __func__ `LLAPI.on("new-messages", callback)`

- **说明**
Expand Down Expand Up @@ -117,6 +119,27 @@
LLAPI.add_editor("123")
```

## __func__ `LLAPI.del_editor(type, space=false)`

- **说明**

删除消息编辑栏的指定类型内容(实验性)

- **参数**

- type(string): 消息类型
- space(boolean): 是否删除空格

- **返回**

- (bool): 是否执行成功

- **用法**

```js
LLAPI.del_editor("msg-at", true)
```

## __func__ `LLAPI.add_message_list(peer, message)`

- **说明**
Expand Down

0 comments on commit db3e3af

Please sign in to comment.