mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-11-22 13:14:58 +05:00
:shock:
This commit is contained in:
parent
d1594b8278
commit
7aaaa914f5
1 changed files with 3 additions and 3 deletions
|
@ -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());
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue