aboutsummaryrefslogtreecommitdiff
path: root/src/api/Badges.ts
diff options
context:
space:
mode:
authorVendicated <vendicated@riseup.net>2023-04-29 02:06:52 +0200
committerVendicated <vendicated@riseup.net>2023-04-29 02:06:52 +0200
commita2e03084b001a154bf1b33b213480028bb2d4e59 (patch)
tree85dfe8c491b93c8b2b79b29cbc737b6d10b06e71 /src/api/Badges.ts
parentec72b4c91d422fa95ee93d71f3be839fdad679de (diff)
downloadVencord-a2e03084b001a154bf1b33b213480028bb2d4e59.tar.gz
Vencord-a2e03084b001a154bf1b33b213480028bb2d4e59.tar.bz2
Vencord-a2e03084b001a154bf1b33b213480028bb2d4e59.zip
BadgeAPI: Add support for multiple donor badges
Diffstat (limited to 'src/api/Badges.ts')
-rw-r--r--src/api/Badges.ts4
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;
}