mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-02-12 16:00:27 +00:00
fix: 代码精简
This commit is contained in:
@@ -11,11 +11,11 @@ export class OB11HeartbeatEvent extends OB11BaseMetaEvent {
|
||||
status: HeartbeatStatus;
|
||||
interval: number;
|
||||
|
||||
public constructor(core: NapCatCore, interval: number, isOnline: boolean | undefined, isGood: boolean) {
|
||||
public constructor(core: NapCatCore, interval: number, isOnline: boolean, isGood: boolean) {
|
||||
super(core);
|
||||
this.interval = interval;
|
||||
this.status = {
|
||||
online: isOnline && true,
|
||||
online: isOnline,
|
||||
good: isGood,
|
||||
};
|
||||
}
|
||||
|
||||
@@ -25,7 +25,7 @@ export class OB11GroupPokeEvent extends OB11PokeEvent {
|
||||
raw_info: any;
|
||||
|
||||
//raw_message nb等框架标准为string
|
||||
constructor(core: NapCatCore, group_id: number, user_id: number = 0, target_id: number = 0, raw_message: any) {
|
||||
constructor(core: NapCatCore, group_id: number, user_id: number, target_id: number, raw_message: any) {
|
||||
super(core);
|
||||
this.group_id = group_id;
|
||||
this.target_id = target_id;
|
||||
|
||||
Reference in New Issue
Block a user