mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-02-12 07:50:25 +00:00
fix: type
This commit is contained in:
@@ -165,10 +165,10 @@ export class OneBotGroupApi {
|
||||
async parseGroupBanEvent(GroupCode: string, grayTipElement: GrayTipElement) {
|
||||
const groupElement = grayTipElement?.groupElement;
|
||||
if (!groupElement?.shutUp) return undefined;
|
||||
const memberUid = groupElement.shutUp!.member.uid;
|
||||
const adminUid = groupElement.shutUp!.admin.uid;
|
||||
const memberUid = groupElement.shutUp.member.uid;
|
||||
const adminUid = groupElement.shutUp.admin.uid;
|
||||
let memberUin: string;
|
||||
let duration = parseInt(groupElement.shutUp!.duration);
|
||||
let duration = parseInt(groupElement.shutUp.duration);
|
||||
const subType: 'ban' | 'lift_ban' = duration > 0 ? 'ban' : 'lift_ban';
|
||||
if (memberUid) {
|
||||
memberUin = (await this.core.apis.GroupApi.getGroupMember(GroupCode, memberUid))?.uin ?? '';
|
||||
|
||||
@@ -700,7 +700,7 @@ export class OneBotMsgApi {
|
||||
//跳过空消息
|
||||
const resMsg: OB11Message = {
|
||||
self_id: parseInt(this.core.selfInfo.uin),
|
||||
user_id: parseInt(msg.senderUin!),
|
||||
user_id: parseInt(msg.senderUin),
|
||||
time: parseInt(msg.msgTime) || Date.now(),
|
||||
message_id: msg.id!,
|
||||
message_seq: msg.id!,
|
||||
|
||||
Reference in New Issue
Block a user