mirror of
https://github.com/Vendicated/Vencord.git
synced 2024-09-20 06:30:35 +00:00
Update index.tsx
This commit is contained in:
parent
a5be1873ba
commit
a4408263a7
1 changed files with 17 additions and 17 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue