mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-11-25 06:34: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();
|
||||
|
||||
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());
|
||||
|
||||
|
|
Loading…
Reference in a new issue