release: v2.2.10

This commit is contained in:
手瓜一十雪
2024-08-26 01:58:41 +08:00
parent 5b2a0ef0a0
commit 8ead978857
6 changed files with 7 additions and 6 deletions

View File

@@ -59,6 +59,7 @@ export class OneBotMsgApi {
rawToOb11Converters: RawToOb11Converters = {
textElement: async element => {
console.log(element);
if (element.atType === AtType.notAt) {
let text = element.content;
if (!text.trim()) {
@@ -707,7 +708,7 @@ export class OneBotMsgApi {
const msgSegments = (await Promise.all(msg.elements.map(
async (element) => {
for (const key in element) {
if (keyCanBeParsed(key, this.rawToOb11Converters) && this.rawToOb11Converters[key]) {
if (keyCanBeParsed(key, this.rawToOb11Converters) && element[key]) {
return await this.rawToOb11Converters[key]?.(
// eslint-disable-next-line
// @ts-ignore