diff --git a/plugins/pindms/components/GuildPins.tsx b/plugins/pindms/components/GuildPins.tsx index 3d39324..d09d622 100644 --- a/plugins/pindms/components/GuildPins.tsx +++ b/plugins/pindms/components/GuildPins.tsx @@ -217,6 +217,7 @@ function GuildPin({ id }: { id: string }) { {Badge && (unreadCount ?? 0) > 0 ? Badge.renderMentionBadge!(unreadCount) : Badge?.renderMediaBadge!(mediaInfo)} + )} diff --git a/plugins/pindms/components/index.ts b/plugins/pindms/components/index.ts index 4601c5c..a8181d3 100644 --- a/plugins/pindms/components/index.ts +++ b/plugins/pindms/components/index.ts @@ -91,6 +91,7 @@ export const StatusBlob = AvatarRaw?.X as FC | undefined; const BadgeRaw = webpack.getBySource('"count","color","disableColor","shape","className","style"'); + const BadgeMod = await webpack.waitForModule(webpack.filters.bySource(".isCurrentUserConnected]")); export const Badge = { renderMediaBadge: webpack.getFunctionBySource<