Handler
约 148 字小于 1 分钟
2025-10-13
Karin API Docs / Handler
接口: Handler
定义于: packages/core/src/types/plugin/handler.ts:4
handler类型
属性
file
file:
PluginFile<"handler">
定义于: packages/core/src/types/plugin/handler.ts:8
插件方法基本属性
fnc()
fnc: (
args,next) =>unknown
定义于: packages/core/src/types/plugin/handler.ts:14
handler的处理方法
参数
args
自定义参数 由调用方传递
next
(msg?) => void
调用后将继续执行下一个handler
返回
unknown
key
key:
string
定义于: packages/core/src/types/plugin/handler.ts:12
入口key
pkg
pkg:
PkgInfo
定义于: packages/core/src/types/plugin/handler.ts:6
插件包基本属性
priority
priority:
number
定义于: packages/core/src/types/plugin/handler.ts:10
优先级
