Command
约 320 字大约 1 分钟
2025-10-13
Karin API Docs / Command
接口: Command\<T\>
定义于: packages/core/src/types/plugin/command.ts:14
函数方法命令插件
继承
类型参数
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:37
如果无权触发插件 是否打印日志
true
:暂无权限,只有主人才能操作
false
: ``string
:自定义提示
dsbAdapter
dsbAdapter:
AdapterProtocol
[]
定义于: packages/core/src/types/plugin/base.ts:130
禁用的适配器
继承自
event
event:
T
定义于: packages/core/src/types/plugin/command.ts:26
监听事件
file
file:
PluginFile
<"command"
>
定义于: packages/core/src/types/plugin/command.ts:20
插件方法基本属性
fnc
fnc:
CmdFnc
<T
>
定义于: packages/core/src/types/plugin/command.ts:41
插件方法
log()
log: (
id
,log
) =>void
定义于: packages/core/src/types/plugin/command.ts:39
打印触发插件日志方法
参数
id
string
log
string
返回
void
permission
permission:
Permission
定义于: packages/core/src/types/plugin/command.ts:30
插件触发权限
pkg
pkg:
PkgInfo
定义于: packages/core/src/types/plugin/command.ts:18
插件包基本属性
priority
priority:
number
定义于: packages/core/src/types/plugin/command.ts:28
优先级
reg
reg:
RegExp
定义于: packages/core/src/types/plugin/command.ts:24
插件正则
type
type:
"fnc"
定义于: packages/core/src/types/plugin/command.ts:22
插件子类型