aboutsummaryrefslogtreecommitdiff
path: root/src/api
diff options
context:
space:
mode:
authorVendicated <vendicated@riseup.net>2022-11-17 00:21:13 +0100
committerVendicated <vendicated@riseup.net>2022-11-17 00:21:20 +0100
commit410613726b7f2da85d653bbf0e9cb662f1abd32e (patch)
treef424d91dc7d93e65431caf28b873c1a0a4a548cf /src/api
parent8b3f290e3ce1b166a3a15019b1f3504e015464c5 (diff)
downloadVencord-410613726b7f2da85d653bbf0e9cb662f1abd32e.tar.gz
Vencord-410613726b7f2da85d653bbf0e9cb662f1abd32e.tar.bz2
Vencord-410613726b7f2da85d653bbf0e9cb662f1abd32e.zip
Donor Badges && Add donate info to settings
Diffstat (limited to 'src/api')
-rw-r--r--src/api/Badges.ts4
1 files changed, 4 insertions, 0 deletions
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;
}