This commit is contained in:
Jonny_Bro (Nikita) 2023-03-30 11:51:13 +05:00
parent d1594b8278
commit 7aaaa914f5

View file

@ -38,11 +38,11 @@ class Checkjar extends BaseCommand {
await interaction.deferReply(); await interaction.deferReply();
const jar = client.config.monobankApi.jar; const jar = client.config.apiKeys.monobankApiJar;
const data = await fetch(`https://api.monobank.ua/personal/statement/${jar}/${Date.now() - (7 * 24 * 60 * 60 * 1000)}/${Date.now()}`, { const data = fetch(`https://api.monobank.ua/personal/statement/${jar}/${Date.now() - (7 * 24 * 60 * 60 * 1000)}/${Date.now()}`, {
method: "GET", method: "GET",
headers: { headers: {
"X-Token": client.config.monobankApi.token, "X-Token": client.config.apiKeys.monobankApiKey,
}, },
}).then(res => res.json()); }).then(res => res.json());