From d16a3439cd88fd0fa2ca8d97865f2a5ae7348c17 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Mon, 1 Feb 2021 21:53:43 -0500 Subject: [PATCH] Fix null --- structures/Client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/structures/Client.js b/structures/Client.js index 4d5bd678..6ebc1bf9 100644 --- a/structures/Client.js +++ b/structures/Client.js @@ -112,7 +112,7 @@ module.exports = class XiaoClient extends CommandoClient { let text = '{'; for (const command of this.registry.commands.values()) { if (command.lastRun === undefined) continue; - text += `\n "${command.name}": "${command.lastRun ? command.lastRun.toISOString() : null}",`; + text += `\n "${command.name}": ${command.lastRun ? `"${command.lastRun.toISOString()}"` : null},`; } text = text.slice(0, -1); text += '\n}\n';