From a4408263a7eec58e8e811a5eb691cb70e0b760a2 Mon Sep 17 00:00:00 2001 From: vishnyanetchereshnya <151846235+vishnyanetchereshnya@users.noreply.github.com> Date: Thu, 20 Jun 2024 23:53:36 +0300 Subject: [PATCH] Update index.tsx --- src/plugins/notesSearcher/index.tsx | 34 ++++++++++++++--------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/src/plugins/notesSearcher/index.tsx b/src/plugins/notesSearcher/index.tsx index 77a0c1ca9..1794ee28a 100644 --- a/src/plugins/notesSearcher/index.tsx +++ b/src/plugins/notesSearcher/index.tsx @@ -1,19 +1,19 @@ -/* - * Vencord, a Discord client mod - * Copyright (c) 2024 Vendicated and contributors - * SPDX-License-Identifier: GPL-3.0-or-later - */ - -import "./styles.css"; - -import ErrorBoundary from "@components/ErrorBoundary"; -import { Devs } from "@utils/constants"; -import definePlugin from "@utils/types"; -import { RestAPI } from "@webpack/common"; - -import { OpenNotesDataButton } from "./components/NotesDataButton"; -import { refreshNotesData } from "./components/NotesDataModal"; -import { NotesMap, updateNote } from "./data"; +/* + * Vencord, a Discord client mod + * Copyright (c) 2024 Vendicated and contributors + * SPDX-License-Identifier: GPL-3.0-or-later + */ + +import "./styles.css"; + +import ErrorBoundary from "@components/ErrorBoundary"; +import { Devs } from "@utils/constants"; +import definePlugin from "@utils/types"; +import { Constants, RestAPI } from "@webpack/common"; + +import { OpenNotesDataButton } from "./components/NotesDataButton"; +import { refreshNotesData } from "./components/NotesDataModal"; +import { NotesMap, updateNote } from "./data"; import settings from "./settings"; export default definePlugin({ @@ -57,7 +57,7 @@ export default definePlugin({ refreshNotesData, start: async () => { - const result = await RestAPI.get({ url: "/users/@me/notes" }); + const result = await RestAPI.get({ url: Constants.Endpoints.NOTES }); const userNotes: { [userId: string]: string; } | undefined = result.body;