From 7aaaa914f566f786869e34b4d9a8aeb2318ede81 Mon Sep 17 00:00:00 2001 From: "Jonny_Bro (Nikita)" Date: Thu, 30 Mar 2023 11:51:13 +0500 Subject: [PATCH] :shock: --- commands/IAT/checkjar.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/commands/IAT/checkjar.js b/commands/IAT/checkjar.js index 426b7e1b..c0db407f 100644 --- a/commands/IAT/checkjar.js +++ b/commands/IAT/checkjar.js @@ -38,11 +38,11 @@ class Checkjar extends BaseCommand { await interaction.deferReply(); - const jar = client.config.monobankApi.jar; - const data = await fetch(`https://api.monobank.ua/personal/statement/${jar}/${Date.now() - (7 * 24 * 60 * 60 * 1000)}/${Date.now()}`, { + const jar = client.config.apiKeys.monobankApiJar; + const data = fetch(`https://api.monobank.ua/personal/statement/${jar}/${Date.now() - (7 * 24 * 60 * 60 * 1000)}/${Date.now()}`, { method: "GET", headers: { - "X-Token": client.config.monobankApi.token, + "X-Token": client.config.apiKeys.monobankApiKey, }, }).then(res => res.json());