diff --git a/src/core/packet/context/operationContext.ts b/src/core/packet/context/operationContext.ts index 3cf219809..a9e34b133 100644 --- a/src/core/packet/context/operationContext.ts +++ b/src/core/packet/context/operationContext.ts @@ -21,7 +21,7 @@ export class PacketOperationContext { } async GroupPoke(groupUin: number, uin: number) { - const req = trans.SendPoke.build(groupUin, uin); + const req = trans.SendPoke.build(uin, groupUin); await this.context.client.sendOidbPacket(req); } diff --git a/src/onebot/action/group/GroupPoke.ts b/src/onebot/action/group/GroupPoke.ts index 4db865f65..27a91c759 100644 --- a/src/onebot/action/group/GroupPoke.ts +++ b/src/onebot/action/group/GroupPoke.ts @@ -14,6 +14,6 @@ export class GroupPoke extends GetPacketStatusDepends { payloadSchema = SchemaData; async _handle(payload: Payload) { - await this.core.apis.PacketApi.pkt.operation.GroupPoke(+payload.user_id, +payload.group_id); + await this.core.apis.PacketApi.pkt.operation.GroupPoke(+payload.group_id, +payload.user_id); } } diff --git a/src/onebot/action/packet/SendPoke.ts b/src/onebot/action/packet/SendPoke.ts index 13819a668..406478d6d 100644 --- a/src/onebot/action/packet/SendPoke.ts +++ b/src/onebot/action/packet/SendPoke.ts @@ -15,9 +15,9 @@ export class SendPoke extends GetPacketStatusDepends { async _handle(payload: Payload) { if (payload.group_id) { - this.core.apis.PacketApi.pkt.operation.GroupPoke(+payload.group_id, +payload.user_id); + await this.core.apis.PacketApi.pkt.operation.GroupPoke(+payload.group_id, +payload.user_id); } else { - this.core.apis.PacketApi.pkt.operation.FriendPoke(+payload.user_id); + await this.core.apis.PacketApi.pkt.operation.FriendPoke(+payload.user_id); } } -} \ No newline at end of file +}