You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Notable Changes
inject
进行声明,否则会打印一个警告 (cordiverse/cordis@fbe9b62, cordiverse/cordis@2fd92c7, cordiverse/cordis@b21ada0, cordiverse/cordis@990065b, 28d70ab)ctx.router
现在将作为默认提供的非内置服务,需要手动声明;未来版本中此服务将被拆分到独立的插件中 (satorijs/satori@5db7c77, satorijs/satori@9564c4c, satorijs/satori@78fa90d, koishijs/webui@5c4f32b)ctx.logger()
发送日志时,将基于插件的上下文进行追踪:在控制台的插件详情页面中将展示每一个插件产生的日志 (satorijs/satori@97101b6, shigma/reggol@b62c896, shigma/reggol@b45abe1, koishijs/webui@9cc1078, satorijs/satori@cad35d9, 9bc7d84, 4184d24)Features
--name
修改为--rename
以避免与参数名称冲突 (Bug: 当指令的参数名称与选项名称冲突时将引起 discord 报错 #1241) (koishijs/webui@6d6f95a)fork.uid
(koishijs/webui@4ea21f8)Proxy
实现Context.current
属性,这将使得服务在实现可回收的 API 时不再受到时序问题的限制 (cordiverse/cordis@9da1acc, cordiverse/cordis@7b1c8f8)ctx.plugin()
的类型签名 (cordiverse/cordis@ce3d25a, cordiverse/cordis@015fbd8)ctx.plugin()
将不再抛出错误,而是仍然创建上下文并记录错误状态 (cordiverse/cordis@23289a1)<button>
元素 (satorijs/satori@91d5bad)Bug Fixes
Bot
实例未创建好时不触发login-added
事件 (satorijs/satori@062cde0)Bot
参数缺乏泛型导致的类型不匹配问题 (satorijs/satori@e1ca284)before-send
事件中Session
部分属性缺失的问题 (Bug:before-send
事件回调中的session
变量缺少user
与channel
#1235) (satorijs/satori@5237872)message.id
缺失的问题 (07a83ab)Other Changes
This discussion was created from the release Koishi 4.15.3.
Beta Was this translation helpful? Give feedback.
All reactions