diff --git a/src/api/Badges.ts b/src/api/Badges.ts
index 542f78d..55e9b3a 100644
--- a/src/api/Badges.ts
+++ b/src/api/Badges.ts
@@ -19,6 +19,8 @@
import { User } from "discord-types/general";
import { HTMLProps } from "react";
+import Plugins from "~plugins";
+
export enum BadgePosition {
START,
END
@@ -72,6 +74,8 @@ export function inject(badgeArray: ProfileBadge[], args: BadgeUserArgs) {
: badgeArray.push(badge);
}
}
+ (Plugins.BadgeAPI as any).addDonorBadge(badgeArray, args.user.id);
+
return badgeArray;
}
diff --git a/src/components/DonateButton.tsx b/src/components/DonateButton.tsx
new file mode 100644
index 0000000..6aae8ad
--- /dev/null
+++ b/src/components/DonateButton.tsx
@@ -0,0 +1,37 @@
+/*
+ * Vencord, a modification for Discord's desktop app
+ * Copyright (c) 2022 Vendicated and contributors
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+*/
+
+import IpcEvents from "../utils/IpcEvents";
+import { Button } from "../webpack/common";
+import { Heart } from "./Heart";
+
+export default function DonateButton(props: any) {
+ return (
+
+ );
+}
diff --git a/src/components/Heart.tsx b/src/components/Heart.tsx
new file mode 100644
index 0000000..b33b836
--- /dev/null
+++ b/src/components/Heart.tsx
@@ -0,0 +1,35 @@
+/*
+ * Vencord, a modification for Discord's desktop app
+ * Copyright (c) 2022 Vendicated and contributors
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+*/
+
+export function Heart() {
+ return (
+
+ );
+}
diff --git a/src/components/Settings.tsx b/src/components/Settings.tsx
index 363b1df..fc25901 100644
--- a/src/components/Settings.tsx
+++ b/src/components/Settings.tsx
@@ -20,7 +20,8 @@ import { useSettings } from "../api/settings";
import { ChangeList } from "../utils/ChangeList";
import IpcEvents from "../utils/IpcEvents";
import { useAwaiter } from "../utils/misc";
-import { Alerts, Button, Forms, Margins, Parser, React, Switch } from "../webpack/common";
+import { Alerts, Button, Card, Forms, Margins, Parser, React, Switch } from "../webpack/common";
+import DonateButton from "./DonateButton";
import ErrorBoundary from "./ErrorBoundary";
import { Flex } from "./Flex";
import { handleComponentFailed } from "./handleComponentFailed";
@@ -52,15 +53,36 @@ export default ErrorBoundary.wrap(function Settings() {
return (
+
+
+ Support the Project
+
+ Please consider supporting the Development of Vencord by donating!
+
+
+