This commit is contained in:
手瓜一十雪 2024-10-14 21:56:51 +08:00
parent eeb15ea564
commit 61cbcdffe8

View File

@ -69,7 +69,7 @@ export async function createContext(core: NapCatCore, payload: OB11PostContext,
}
return {
chatType: ChatType.KCHATTYPEC2C,
peerUid: Uid!,
peerUid: Uid,
guildId: '',
};
}
@ -100,6 +100,7 @@ export class SendMsg extends BaseAction<OB11PostSendMsg, ReturnDataType> {
}
async _handle(payload: OB11PostSendMsg): Promise<{ message_id: number }> {
this.contextMode = ContextMode.Normal;
if (payload.message_type === 'group') this.contextMode = ContextMode.Group;
if (payload.message_type === 'private') this.contextMode = ContextMode.Private;
const peer = await createContext(this.core, payload, this.contextMode);