mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2025-07-19 12:03:37 +00:00
refactor: add available
accessor property in PacketClient
This commit is contained in:
@@ -18,7 +18,7 @@ export class GroupPoke extends BaseAction<Payload, any> {
|
||||
payloadSchema = SchemaData;
|
||||
|
||||
async _handle(payload: Payload) {
|
||||
if (!this.core.apis.PacketApi.packetClient?.isConnected) {
|
||||
if (!this.core.apis.PacketApi.packetClient?.available) {
|
||||
throw new Error('packetClient is not init');
|
||||
}
|
||||
await this.core.apis.PacketApi.sendPokePacket(+payload.group_id, +payload.user_id);
|
||||
|
Reference in New Issue
Block a user