refactor: further decoupling of Packet and Core parts

This commit is contained in:
pk5ls20 committed 2024-10-14 17:51:21 +08:00
1 parent 1fbc339a42
commit 397c2cf5f0
9 files changed
+68 -42

No files matched your search

+1 -1
View File
@@ -18,7 +18,7 @@ export class GroupPoke extends BaseAction<Payload, 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');
}
await this.core.apis.PacketApi.sendPokePacket(+payload.group_id, +payload.user_id);