Files
discord-decomp/modules/guild_role_subscriptions/subscriptionUtils.tsx
T
2026-11-01 12:12:55 +02:00

14 lines
525 B
TypeScript

// Metro module 14231 (f14232).
import Module38 from "../../_bundle/Module38";
export function getRoleSubscriptionPlanId({ items }) {
Module38(items.length === 1, "more than 1 subscription item for role subscription");
return items[0].planId;
}
export function getRoleSubscriptionMutationPlanId(a0) {
const r5 = a0 == null ? void 0 : a0.renewalMutations?.items;
if (r5 != null) {
Module38(r5.length <= 1, "more than 1 renewal mutation for role subscription");
return r5 == null ? void 0 : r5[0].planId;
}
}