Skip to content

Commit

Permalink
细节优化
Browse files Browse the repository at this point in the history
  • Loading branch information
TimeRainStarSky committed Apr 7, 2024
1 parent bce3d70 commit c2af249
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/bot.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c2af249

Please sign in to comment.