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;