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