feat: initGroupListener
This commit is contained in:
1 parent
4e7595d8d1
commit
d5eaeb429a
3 files changed
+145
-6
No files matched your search
@@ -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;
|
||||
}
|
||||
}
|
||||
@@ -9,10 +9,12 @@ export class OB11GroupRequestEvent extends OB11GroupNoticeEvent {
|
||||
user_id: number;
|
||||
comment: string;
|
||||
flag: string;
|
||||
sub_type: string;
|
||||
|
||||
constructor(core: NapCatCore, groupId: number, userId: number, comment: string, flag: string) {
|
||||
constructor(core: NapCatCore, groupId: number, userId: number, sub_type: string, comment: string, flag: string) {
|
||||
super(core, groupId, userId);
|
||||
this.user_id = userId;
|
||||
this.sub_type = sub_type;
|
||||
this.comment = comment;
|
||||
this.flag = flag;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user