diff options
Diffstat (limited to 'src/api')
-rw-r--r-- | src/api/Badges.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/api/Badges.ts b/src/api/Badges.ts index 9abaefe..a0961c4 100644 --- a/src/api/Badges.ts +++ b/src/api/Badges.ts @@ -79,8 +79,8 @@ export function _getBadges(args: BadgeUserArgs) { : badges.push({ ...badge, ...args }); } } - const donorBadge = (Plugins.BadgeAPI as any).getDonorBadge(args.user.id); - if (donorBadge) badges.unshift(donorBadge); + const donorBadges = (Plugins.BadgeAPI as unknown as typeof import("../plugins/apiBadges").default).getDonorBadges(args.user.id); + if (donorBadges) badges.unshift(...donorBadges); return badges; } |