mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2024-11-21 09:36:35 +00:00
fix
This commit is contained in:
parent
fa3e90a021
commit
36e1317792
@ -12,4 +12,4 @@
|
|||||||
12. 修复群成员加入时间 上次活跃 活跃等级字段 - 影响 API: /get_group_member_info /get_group_member_list
|
12. 修复群成员加入时间 上次活跃 活跃等级字段 - 影响 API: /get_group_member_info /get_group_member_list
|
||||||
13. 修复视频所需的 ffmpeg 路径不正确导致视频封面和时长获取失败 - 影响 Event/API
|
13. 修复视频所需的 ffmpeg 路径不正确导致视频封面和时长获取失败 - 影响 Event/API
|
||||||
14. 支持音乐卡片,需要配置签名服务器地址, `config/onebot11_<qq>.json`的`musicSignUrl`字段 - 新增 Feat: Sign Music
|
14. 支持音乐卡片,需要配置签名服务器地址, `config/onebot11_<qq>.json`的`musicSignUrl`字段 - 新增 Feat: Sign Music
|
||||||
15. 支持获取群公告 - 新增 API: /set_online_status
|
15. 支持获取与设置群公告 - 新增 API: /_send_group_notice /_get_group_notice
|
||||||
|
@ -6,7 +6,7 @@ interface PayloadType {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export class GetGroupNotice extends BaseAction<PayloadType, null> {
|
export class GetGroupNotice extends BaseAction<PayloadType, null> {
|
||||||
actionName = ActionName.GetGroupNotice;
|
actionName = ActionName.GoCQHTTP_GetGroupNotice;
|
||||||
|
|
||||||
protected async _handle(payload: PayloadType) {
|
protected async _handle(payload: PayloadType) {
|
||||||
const group = payload.group_id.toString();
|
const group = payload.group_id.toString();
|
||||||
|
16
src/onebot11/action/group/SetGroupNotice.ts
Normal file
16
src/onebot11/action/group/SetGroupNotice.ts
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
import BaseAction from '../BaseAction';
|
||||||
|
import { ActionName } from '../types';
|
||||||
|
|
||||||
|
interface PayloadType {
|
||||||
|
group_id: number
|
||||||
|
}
|
||||||
|
|
||||||
|
export class SetGroupNotice extends BaseAction<PayloadType, null> {
|
||||||
|
actionName = ActionName.GoCQHTTP_SetGroupNotice;
|
||||||
|
|
||||||
|
protected async _handle(payload: PayloadType) {
|
||||||
|
const group = payload.group_id.toString();
|
||||||
|
// WebApi.getGrouptNotice(group);
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
@ -53,10 +53,11 @@ export enum ActionName {
|
|||||||
CleanCache = 'clean_cache',
|
CleanCache = 'clean_cache',
|
||||||
GetCookies = 'get_cookies',
|
GetCookies = 'get_cookies',
|
||||||
// 以下为扩展napcat扩展
|
// 以下为扩展napcat扩展
|
||||||
GetGroupNotice = 'get_group_notice',
|
|
||||||
GetRobotUinRange = 'get_robot_uin_range',
|
GetRobotUinRange = 'get_robot_uin_range',
|
||||||
SetOnlineStatus = 'set_online_status',
|
SetOnlineStatus = 'set_online_status',
|
||||||
// 以下为go-cqhttp api
|
// 以下为go-cqhttp api
|
||||||
|
GoCQHTTP_SetGroupNotice = '_send_group_notice',
|
||||||
|
GoCQHTTP_GetGroupNotice = '_get_group_notice',
|
||||||
GoCQHTTP_SendForwardMsg = 'send_forward_msg',
|
GoCQHTTP_SendForwardMsg = 'send_forward_msg',
|
||||||
GoCQHTTP_SendGroupForwardMsg = 'send_group_forward_msg',
|
GoCQHTTP_SendGroupForwardMsg = 'send_group_forward_msg',
|
||||||
GoCQHTTP_SendPrivateForwardMsg = 'send_private_forward_msg',
|
GoCQHTTP_SendPrivateForwardMsg = 'send_private_forward_msg',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user