huan_kong
287字小于1分钟
2023-07-01
函数名: replyMsg
函数参数:
字段 | 类型 | 说明 | 默认值 |
---|---|---|---|
context | Object | context 对象 | undefined |
message | String | 信息 | undefined |
action | Object | 设置需要执行的操作 | {} |
toEmoji | Boolean | 是否转换为 emoji | true |
action:
字段 | 类型 | 说明 | 默认值 |
---|---|---|---|
at | Boolean | 是否要 at 发送者 | false |
reply | Boolean | 是否要用回复形式 | false |
函数名: sendMsg
函数参数:
字段 | 类型 | 说明 | 默认值 |
---|---|---|---|
user_id | Number | QQ 号 | undefined |
message | String | 信息 | undefined |
toEmoji | Boolean | 是否转换为 emoji | true |
函数名: sendForwardMsg
函数参数:
字段 | 类型 | 说明 | 默认值 |
---|---|---|---|
context | Object | context 对象 | undefined |
messages | Array | CQNode 对象 | undefined |
toEmoji | Boolean | 是否转换为 emoji | true |
此方法可能不是一看就能用明白,详细请查看 go-cqhttp
的文档
函数名: parseToEmoji
函数参数:
字段 | 类型 | 说明 | 默认值 |
---|---|---|---|
message | String | 消息 | undefined |
默认是不处理对象的,如果需要处理对象的话,需要在对需要反转义的 emoji
处手动调用次方法