Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MliKiowa committed Apr 28, 2024
1 parent f8abb73 commit ff5a21c
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/onebot11/action/group/GetGroupNotice.ts
Original file line number Diff line number Diff line change
@@ -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;
}
}
1 change: 1 addition & 0 deletions src/onebot11/action/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ff5a21c

Please sign in to comment.