From 410613726b7f2da85d653bbf0e9cb662f1abd32e Mon Sep 17 00:00:00 2001 From: Vendicated Date: Thu, 17 Nov 2022 00:21:13 +0100 Subject: Donor Badges && Add donate info to settings --- src/api/Badges.ts | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/api/Badges.ts') 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; } -- cgit