mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-02-13 00:10:27 +00:00
chore: OneBotApi
This commit is contained in:
11
src/onebot/event/request/OB11FriendRequest.ts
Normal file
11
src/onebot/event/request/OB11FriendRequest.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import { OB11BaseNoticeEvent } from '../notice/OB11BaseNoticeEvent';
|
||||
import { EventType } from '../OB11BaseEvent';
|
||||
|
||||
|
||||
export class OB11FriendRequestEvent extends OB11BaseNoticeEvent {
|
||||
post_type = EventType.REQUEST;
|
||||
user_id: number = 0;
|
||||
request_type = 'friend' as const;
|
||||
comment: string = '';
|
||||
flag: string = '';
|
||||
}
|
||||
11
src/onebot/event/request/OB11GroupRequest.ts
Normal file
11
src/onebot/event/request/OB11GroupRequest.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import { OB11GroupNoticeEvent } from '../notice/OB11GroupNoticeEvent';
|
||||
import { EventType } from '../OB11BaseEvent';
|
||||
|
||||
|
||||
export class OB11GroupRequestEvent extends OB11GroupNoticeEvent {
|
||||
post_type = EventType.REQUEST;
|
||||
request_type = 'group' as const;
|
||||
sub_type: 'add' | 'invite' = 'add';
|
||||
comment: string = '';
|
||||
flag: string = '';
|
||||
}
|
||||
Reference in New Issue
Block a user