Skip to content

Commit

Permalink
bump versions
Browse files Browse the repository at this point in the history
  • Loading branch information
shigma committed Jan 28, 2024
1 parent 359d457 commit 5973868
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"build": "cross-env NODE_OPTIONS=--max-old-space-size=8192 vitepress build ."
},
"devDependencies": {
"@cordisjs/vitepress": "^3.2.4",
"@cordisjs/vitepress": "^3.2.5",
"@intlify/unplugin-vue-i18n": "^1.5.0",
"@koishijs/components": "^1.5.8",
"@koishijs/core": "^4.16.7",
Expand All @@ -29,7 +29,7 @@
"markdown-it-mathjax3": "^4.3.2",
"marked-vue": "^1.3.0",
"typescript": "^5.3.2",
"vitepress": "1.0.0-rc.36",
"vitepress": "1.0.0-rc.40",
"vue-i18n": "^9.8.0"
}
}
3 changes: 1 addition & 2 deletions zh-CN/api/core/context.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,10 @@ Koishi 使用了组合 (Compose) 的开发方式,绝大部分上下文属性

在当前上下文中注册或修改一个指令。

### ctx.broadcast(channels?, content, forced?) <badge>需要数据库</badge>
### ctx.broadcast(channels?, content) <badge>需要数据库</badge>

- **channels:** `string[]` 频道列表,格式为 `{platform}:{channelId}` (如 `discord:1234567890`)
- **content:** `string` 要发送的内容
- **forced:** `boolean` 是否无视 silent 标记
- 返回值: `Promise<string[]>` 成功发送的消息 ID 列表

所有机器人向自己分配的频道广播消息,存在标记 silent 的频道除外。如有失败不会抛出错误。
Expand Down

0 comments on commit 5973868

Please sign in to comment.