From ccfb861489899204658d667f8fba077d612dfb80 Mon Sep 17 00:00:00 2001 From: JonnyBro Date: Sun, 26 Dec 2021 19:37:21 +0500 Subject: [PATCH] fix fetch --- commands/General/github.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/commands/General/github.js b/commands/General/github.js index f6ddc529..9ddb645d 100644 --- a/commands/General/github.js +++ b/commands/General/github.js @@ -20,7 +20,9 @@ class Github extends Command { async run(message, args, data) { const res = await fetch("https://api.github.com/repos/JonnyBro/JaBa-new", { - headers: `Authorization: ${data.config.githubToken}` + headers: { + Authorization: data.config.githubToken + } }); const json = await res.json();