feat: update type define in packet
This commit is contained in:
6 files changed
+28
-26
No files matched your search
@@ -18,7 +18,7 @@ export class GetUserStatus extends BaseAction<Payload, { status: number; ext_sta
|
||||
|
||||
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');
|
||||
}
|
||||
return await this.core.apis.PacketApi.sendStatusPacket(+payload.user_id);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user