From 5973868833cc15b5bc6f04c16823201c3820b8b6 Mon Sep 17 00:00:00 2001 From: Shigma Date: Sun, 28 Jan 2024 23:50:07 +0800 Subject: [PATCH] bump versions --- package.json | 4 ++-- zh-CN/api/core/context.md | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index bcf7dd80cbb5..0f221628dffa 100644 --- a/package.json +++ b/package.json @@ -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", @@ -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" } } diff --git a/zh-CN/api/core/context.md b/zh-CN/api/core/context.md index 012e25dc78eb..16f14089c9b7 100644 --- a/zh-CN/api/core/context.md +++ b/zh-CN/api/core/context.md @@ -96,11 +96,10 @@ Koishi 使用了组合 (Compose) 的开发方式,绝大部分上下文属性 在当前上下文中注册或修改一个指令。 -### ctx.broadcast(channels?, content, forced?) 需要数据库 +### ctx.broadcast(channels?, content) 需要数据库 - **channels:** `string[]` 频道列表,格式为 `{platform}:{channelId}` (如 `discord:1234567890`) - **content:** `string` 要发送的内容 -- **forced:** `boolean` 是否无视 silent 标记 - 返回值: `Promise` 成功发送的消息 ID 列表 所有机器人向自己分配的频道广播消息,存在标记 silent 的频道除外。如有失败不会抛出错误。