mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2024-11-21 09:36:35 +00:00
Merge remote-tracking branch 'origin/main'
This commit is contained in:
commit
d495f351c0
16
src/onebot11/action/group/GetGroupNotice.ts
Normal file
16
src/onebot11/action/group/GetGroupNotice.ts
Normal file
@ -0,0 +1,16 @@
|
||||
import BaseAction from '../BaseAction';
|
||||
import { ActionName } from '../types';
|
||||
|
||||
interface PayloadType {
|
||||
group_id: number
|
||||
}
|
||||
|
||||
export class GetGroupNotice extends BaseAction<PayloadType, null> {
|
||||
actionName = ActionName.GetGroupNotice;
|
||||
|
||||
protected async _handle(payload: PayloadType) {
|
||||
const group = payload.group_id.toString();
|
||||
// WebApi.getGrouptNotice(group);
|
||||
return null;
|
||||
}
|
||||
}
|
@ -53,6 +53,7 @@ export enum ActionName {
|
||||
CleanCache = 'clean_cache',
|
||||
GetCookies = 'get_cookies',
|
||||
// 以下为扩展napcat扩展
|
||||
GetGroupNotice = 'get_group_notice',
|
||||
GetRobotUinRange = 'get_robot_uin_range',
|
||||
SetOnlineStatus = 'set_online_status',
|
||||
// 以下为go-cqhttp api
|
||||
|
Loading…
x
Reference in New Issue
Block a user