mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-02-06 13:05:09 +00:00
release: v2.2.10
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user