feat: initGroupListener

This commit is contained in:
Wesley F. Young
2024-08-11 18:33:23 +08:00
parent 4e7595d8d1
commit d5eaeb429a
3 changed files with 145 additions and 6 deletions

View File

@@ -1,6 +1,12 @@
import { OB11GroupNoticeEvent } from './OB11GroupNoticeEvent';
import { NapCatCore } from '@/core';
export class OB11GroupAdminNoticeEvent extends OB11GroupNoticeEvent {
notice_type = 'group_admin';
sub_type: 'set' | 'unset' = 'set'; // "set" | "unset"
sub_type: 'set' | 'unset'; // "set" | "unset"
constructor(core: NapCatCore, group_id: number, user_id: number, sub_type: 'set' | 'unset') {
super(core, group_id, user_id);
this.sub_type = sub_type;
}
}