From c2af249441ac6fdf66b30333125f5b0540caec24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=F0=9F=8C=8C?= Date: Sun, 7 Apr 2024 20:10:12 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=86=E8=8A=82=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/bot.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/bot.js b/lib/bot.js index 41b48e03..df586fcb 100644 --- a/lib/bot.js +++ b/lib/bot.js @@ -254,6 +254,8 @@ export default class Yunzai extends EventEmitter { case "function": return String(value) case "object": + if (value instanceof Map || value instanceof Set) + return Array.from(value) if (value !== null) break default: return value