refactor: add core into all event constructors
This commit is contained in:
1 parent
2c14281168
commit
6d954b2d5d
20 files changed
+97
-57
No files matched your search
@@ -1,4 +1,5 @@
|
||||
import { OB11GroupNoticeEvent } from './OB11GroupNoticeEvent';
|
||||
import { NapCatCore } from '@/core';
|
||||
|
||||
export class OB11GroupCardEvent extends OB11GroupNoticeEvent {
|
||||
notice_type = 'group_card';
|
||||
@@ -6,8 +7,8 @@ export class OB11GroupCardEvent extends OB11GroupNoticeEvent {
|
||||
card_old: string;
|
||||
|
||||
|
||||
constructor(groupId: number, userId: number, cardNew: string, cardOld: string) {
|
||||
super();
|
||||
constructor(core: NapCatCore, groupId: number, userId: number, cardNew: string, cardOld: string) {
|
||||
super(core);
|
||||
this.group_id = groupId;
|
||||
this.user_id = userId;
|
||||
this.card_new = cardNew;
|
||||
|
||||
Reference in new issue
Block a user