From 5fac8be0ae68cbbdf3514973cbf925a31a765ef5 Mon Sep 17 00:00:00 2001 From: Ven Date: Sun, 23 Oct 2022 23:23:52 +0200 Subject: Vencord Standalone without git/node (#148) --- src/plugins/pronoundb/utils.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/plugins/pronoundb/utils.ts') diff --git a/src/plugins/pronoundb/utils.ts b/src/plugins/pronoundb/utils.ts index 24bc3e2..73ec7b6 100644 --- a/src/plugins/pronoundb/utils.ts +++ b/src/plugins/pronoundb/utils.ts @@ -16,9 +16,8 @@ * along with this program. If not, see . */ -import gitHash from "git-hash"; - -import { debounce } from "../../utils"; +import { VENCORD_USER_AGENT } from "../../utils/constants"; +import { debounce } from "../../utils/debounce"; import { Settings } from "../../Vencord"; import { PronounsFormat } from "."; import { PronounCode, PronounMapping, PronounsResponse } from "./types"; @@ -64,7 +63,7 @@ async function bulkFetchPronouns(ids: string[]): Promise { method: "GET", headers: { "Accept": "application/json", - "X-PronounDB-Source": `Vencord/${gitHash} (github.com/Vendicated/Vencord)` + "X-PronounDB-Source": VENCORD_USER_AGENT } }); return await req.json() -- cgit