Interface ReplyHandleConfig

回复消息处理配置

interface ReplyHandleConfig {
    chat_type?: "all" | ChatType[];
    description?: string;
    handle: handleFunction;
    premission?: "all" | "groupAdmin" | "groupOwner" | "sysAdmin";
}

Hierarchy

Properties

chat_type?: "all" | ChatType[]

描述Config在哪类聊天中生效。 未指定则默认等同于 'all'

description?: string

bot所需要处理的命令提示文字。256字以内。 Description of the command; 1-256 characters.

消息处理函数

premission?: "all" | "groupAdmin" | "groupOwner" | "sysAdmin"

描述该Config的适用权限范围 默认 'all'

Todo

'groupAdmin' 'groupOwner' 尚未实现

Generated using TypeDoc