feat: 更优美的代码

This commit is contained in:
手瓜一十雪 committed 2025-05-18 20:55:11 +08:00
1 parent 259c9610d5
commit a83652bf3f
2 files changed
+5 -22

No files matched your search

@@ -30,16 +30,6 @@ export class PacketOperationContext {
return await this.context.client.sendOidbPacket(pkt, rsp);
}
async GroupPoke(peer: number, uin: number) {
const req = trans.SendPoke.build(true, peer, uin);
await this.context.client.sendOidbPacket(req);
}
async FriendPoke(peer: number, target?: number) {
const req = trans.SendPoke.build(false, peer, target ?? peer);
await this.context.client.sendOidbPacket(req);
}
async SendPoke(is_group: boolean, peer: number, target?: number) {
const req = trans.SendPoke.build(is_group, peer, target ?? peer);
await this.context.client.sendOidbPacket(req);