Update index.tsx

This commit is contained in:
vishnyanetchereshnya 2024-06-20 23:53:36 +03:00 committed by GitHub
parent a5be1873ba
commit a4408263a7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;