From f0891322b5707b78e2f65d3db3baba99658d4899 Mon Sep 17 00:00:00 2001 From: Joren Date: Fri, 28 Jun 2024 01:03:43 +0200 Subject: [PATCH] Output as json --- index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/index.ts b/index.ts index 9e36316..714a521 100644 --- a/index.ts +++ b/index.ts @@ -37,7 +37,9 @@ class InfoClient extends Client { }); guildData[guild.name] = guildInfo; }); - console.log(guildData) + //console.log(guildData) + const jsonData = JSON.stringify(guildData, null, 2); + console.log(jsonData) process.exit(); } }