From 96674c70a66a4dacb63b7677edb2ff0237452a81 Mon Sep 17 00:00:00 2001 From: Shigma Date: Fri, 10 Nov 2023 00:10:36 +0800 Subject: [PATCH] fix(qq): fix error with group message reference --- adapters/qq/src/utils.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/adapters/qq/src/utils.ts b/adapters/qq/src/utils.ts index 271315a8..50590b5a 100644 --- a/adapters/qq/src/utils.ts +++ b/adapters/qq/src/utils.ts @@ -78,7 +78,9 @@ export async function decodeMessage( }) if (data.message_reference) { - message.quote = await bot.getMessage(data.channel_id, data.message_reference.message_id) + message.quote = bot.getMessage + ? await bot.getMessage(data.channel_id, data.message_reference.message_id) + : { id: data.message_reference.message_id } } if (!payload) return message