feat: update type define in packet

This commit is contained in:
pk5ls20
2024-10-14 17:05:04 +08:00
parent f2c719c60d
commit 1fbc339a42
6 changed files with 28 additions and 26 deletions

View File

@@ -19,7 +19,7 @@ export class GroupPoke extends BaseAction<Payload, any> {
async _handle(payload: Payload) {
if (!this.core.apis.PacketApi.packetClient?.available) {
throw new Error('packetClient is not init');
throw new Error('PacketClient is not init');
}
await this.core.apis.PacketApi.sendPokePacket(+payload.group_id, +payload.user_id);
}