diff options
author | Vendicated <vendicated@riseup.net> | 2023-04-29 02:06:52 +0200 |
---|---|---|
committer | Vendicated <vendicated@riseup.net> | 2023-04-29 02:06:52 +0200 |
commit | a2e03084b001a154bf1b33b213480028bb2d4e59 (patch) | |
tree | 85dfe8c491b93c8b2b79b29cbc737b6d10b06e71 /src/api | |
parent | ec72b4c91d422fa95ee93d71f3be839fdad679de (diff) | |
download | Vencord-a2e03084b001a154bf1b33b213480028bb2d4e59.tar.gz Vencord-a2e03084b001a154bf1b33b213480028bb2d4e59.tar.bz2 Vencord-a2e03084b001a154bf1b33b213480028bb2d4e59.zip |
BadgeAPI: Add support for multiple donor badges
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; } |