refactor: add core into all event constructors
This commit is contained in:
1 parent
30e89c643e
commit
2d46017d06
20 files changed
+97
-57
No files matched your search
@@ -1,11 +1,12 @@
|
||||
import { OB11BaseNoticeEvent } from './OB11BaseNoticeEvent';
|
||||
import { NapCatCore } from '@/core';
|
||||
|
||||
export class OB11FriendAddNoticeEvent extends OB11BaseNoticeEvent {
|
||||
notice_type = 'friend_add';
|
||||
user_id: number;
|
||||
|
||||
public constructor(user_Id: number) {
|
||||
super();
|
||||
this.user_id = user_Id;
|
||||
public constructor(core: NapCatCore, userId: number) {
|
||||
super(core);
|
||||
this.user_id = userId;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user