Skip to content

Commit

Permalink
Update docs [no ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
Karlatemp committed Dec 11, 2021
1 parent 07b303f commit 2675e8e
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
6 changes: 6 additions & 0 deletions docs/ConciseAPI.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,12 @@ try (InputStream inputStream = TODO()) {

```

### 自行实现 ExternalResource

从 2.9.0 开始,可以很容易实现自定义 `ExternalResource`

`@see` `AbstractExternalResource` 源码注释

# Contact & Message

## Send Image
Expand Down
9 changes: 8 additions & 1 deletion docs/Messages.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
- [由 mirai 码字符串取得 `MessageChain` 实例](#由-mirai-码字符串取得-messagechain-实例)
- [`serializeToMiraiCode``toString` 的区别](#serializetomiraicode-与-tostring-的区别)

---

## 消息系统

在 Contacts 章节提到,要发送消息,使用 `Contact.sendMessage(Message)``Message` 架构如下图所示。
Expand Down Expand Up @@ -56,6 +58,8 @@ Mirai 支持富文本消息。

> 回到 [目录](#目录)
---

## 消息元素

Mirai 支持多种消息类型。
Expand Down Expand Up @@ -370,7 +374,7 @@ for (SingleMessage message : messageChain) {
}
```

也可以使用 `messageChain.iterator()`
也可以使用 `messageChain.iterator()``messageChain.steam()`

### 序列化

Expand Down Expand Up @@ -478,6 +482,9 @@ bot.getEventChannel().subscribeAlways<GroupMessageEvent>(event -> {

[消息元素](#消息元素) 表格中找到你需要的消息元素,然后到源码内注释查看相应的用法说明。

> 回到 [目录](#目录)
---

## Mirai 码

Expand Down
5 changes: 1 addition & 4 deletions docs/UserManual.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,7 @@ Mirai 控制台现在有两个版本,插件在这两个版本的 Mirai Console
可以使用[脚本](https://mirai.mamoe.net/assets/uploads/files/1618372079496-install-20210412.cmd)
自动安装 32 位带 HTTP 插件的版本,也可以使用安装器个性化安装:

1.

访问 [iTXTech/mcl-installer](https://github.com/iTXTech/mcl-installer/releases)

1. 访问 [iTXTech/mcl-installer](https://github.com/iTXTech/mcl-installer/releases)
2. 下载适合你的系统的可执行文件;
3. 在一个新文件夹存放这个文件,运行它;
4. 通常可以一路回车使用默认设置完成安装,安装完成后程序自动退出;
Expand Down

0 comments on commit 2675e8e

Please sign in to comment.