refactor: packet
This commit is contained in:
1 parent
a06dd11c60
commit
7869c323ac
7 files changed
+143
-120
No files matched your search
@@ -18,9 +18,9 @@ export class GroupPoke extends BaseAction<Payload, any> {
|
||||
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');
|
||||
}
|
||||
await this.core.apis.GroupApi.sendPacketPoke(+payload.group_id, +payload.user_id);
|
||||
await this.core.apis.PacketApi.sendPokePacket(+payload.group_id, +payload.user_id);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user