From 1a8f4e8ae95a836288a99b59534267b9474bbead Mon Sep 17 00:00:00 2001 From: Joren Date: Fri, 28 Jun 2024 01:37:27 +0200 Subject: [PATCH] Last chars of token --- index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.ts b/index.ts index bb515da..ca0d9df 100644 --- a/index.ts +++ b/index.ts @@ -39,7 +39,7 @@ class InfoClient extends Client { }); guildData[guild.name] = guildInfo; }); - const filename = `output/${this.user?.tag} ${this.token.substring(0, 5)}.json`; + const filename = `output/${this.user?.tag} ${this.token.slice(-5)}.json`; const jsonData = JSON.stringify(guildData, null, 2); fs.writeFileSync(filename, jsonData); console.log(`Data saved to ${filename}`);