CommandClass
约 322 字大约 1 分钟
2025-10-13
Karin API Docs / CommandClass
接口: CommandClass\<T\>
定义于: packages/core/src/types/plugin/command.ts:45
类方法命令插件
继承
类型参数
T
T extends keyof MessageEventMap = keyof MessageEventMap
属性
adapter
adapter:
AdapterProtocol[]
定义于: packages/core/src/types/plugin/base.ts:128
适配器
继承自
authFailMsg
authFailMsg:
string|boolean
定义于: packages/core/src/types/plugin/command.ts:68
如果无权触发插件 是否打印日志
true:暂无权限,只有主人才能操作false: ``string:自定义提示
Cls()
Cls: () =>
Plugin<T>
定义于: packages/core/src/types/plugin/command.ts:70
插件类
返回
Plugin<T>
dsbAdapter
dsbAdapter:
AdapterProtocol[]
定义于: packages/core/src/types/plugin/base.ts:130
禁用的适配器
继承自
event
event:
T
定义于: packages/core/src/types/plugin/command.ts:57
监听事件
file
file:
PluginFile<"command">
定义于: packages/core/src/types/plugin/command.ts:51
插件方法基本属性
log()
log: (
id,log) =>void
定义于: packages/core/src/types/plugin/command.ts:72
打印触发插件日志方法
参数
id
string
log
string
返回
void
permission
permission:
Permission
定义于: packages/core/src/types/plugin/command.ts:61
插件触发权限
pkg
pkg:
PkgInfo
定义于: packages/core/src/types/plugin/command.ts:49
插件包基本属性
priority
priority:
number
定义于: packages/core/src/types/plugin/command.ts:59
优先级
reg
reg:
RegExp
定义于: packages/core/src/types/plugin/command.ts:55
插件正则
type
type:
"class"
定义于: packages/core/src/types/plugin/command.ts:53
插件子类型
