diff options
Diffstat (limited to 'src/plugins/pronoundb')
-rw-r--r-- | src/plugins/pronoundb/components/PronounsProfileWrapper.tsx | 2 | ||||
-rw-r--r-- | src/plugins/pronoundb/utils.ts | 7 |
2 files changed, 4 insertions, 5 deletions
diff --git a/src/plugins/pronoundb/components/PronounsProfileWrapper.tsx b/src/plugins/pronoundb/components/PronounsProfileWrapper.tsx index 930d5a7..3f0022e 100644 --- a/src/plugins/pronoundb/components/PronounsProfileWrapper.tsx +++ b/src/plugins/pronoundb/components/PronounsProfileWrapper.tsx @@ -16,7 +16,7 @@ * along with this program. If not, see <https://www.gnu.org/licenses/>. */ -import { classes,useAwaiter } from "../../../utils"; +import { useAwaiter } from "../../../utils"; import { Settings } from "../../../Vencord"; import { UserStore } from "../../../webpack/common"; import { PronounMapping, UserProfileProps } from "../types"; 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 <https://www.gnu.org/licenses/>. */ -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<PronounsResponse> { 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() |