refactor: packet
This commit is contained in:
1 parent
a06dd11c60
commit
7869c323ac
7 files changed
+143
-120
No files matched your search
@@ -17,9 +17,9 @@ export class GetUserStatus extends BaseAction<Payload, { status: number; ext_sta
|
||||
payloadSchema = SchemaData;
|
||||
|
||||
async _handle(payload: Payload) {
|
||||
if (!this.core.apis.PacketApi.PacketClient?.isConnected) {
|
||||
throw new Error('PacketClient is not init');
|
||||
if (!this.core.apis.PacketApi.packetClient?.isConnected) {
|
||||
throw new Error('packetClient is not init');
|
||||
}
|
||||
return await this.core.apis.PacketApi.sendStatusPacket(+payload.user_id);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user