style: 强类型大法
This commit is contained in:
1 parent
ac193cc94a
commit
15854c605b
191 files changed
+923
-806
No files matched your search
@@ -3,7 +3,7 @@ import { EventType } from '@/onebot/event/OneBotEvent';
|
||||
import { NapCatCore } from '@/core';
|
||||
|
||||
export class OB11FriendRequestEvent extends OB11BaseNoticeEvent {
|
||||
post_type = EventType.REQUEST;
|
||||
override post_type = EventType.REQUEST;
|
||||
request_type = 'friend';
|
||||
|
||||
user_id: number;
|
||||
|
||||
@@ -3,10 +3,10 @@ import { EventType } from '@/onebot/event/OneBotEvent';
|
||||
import { NapCatCore } from '@/core';
|
||||
|
||||
export class OB11GroupRequestEvent extends OB11GroupNoticeEvent {
|
||||
post_type = EventType.REQUEST;
|
||||
override post_type = EventType.REQUEST;
|
||||
request_type = 'group';
|
||||
|
||||
user_id: number;
|
||||
override user_id: number;
|
||||
comment: string;
|
||||
flag: string;
|
||||
sub_type: string;
|
||||
|
||||
Reference in new issue
Block a user