mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-03-01 00:00:26 +00:00
refactor: further decoupling of Packet and Core parts
This commit is contained in:
@@ -15,7 +15,7 @@ export class GetRkey extends BaseAction<Payload, Array<any>> {
|
||||
payloadSchema = SchemaData;
|
||||
|
||||
async _handle(payload: Payload) {
|
||||
if (!this.core.apis.PacketApi.packetClient?.available) {
|
||||
if (!this.core.apis.PacketApi.available) {
|
||||
throw new Error('PacketClient is not init');
|
||||
}
|
||||
return await this.core.apis.PacketApi.sendRkeyPacket();
|
||||
|
||||
Reference in New Issue
Block a user