2026-09-10 19:12:31 +00:00
|
|
|
// Module ID: 4234
|
|
|
|
|
// Function ID: 4235
|
2026-09-10 05:38:07 +00:00
|
|
|
// Name: PremiumRoleUtils
|
2026-07-23 10:11:24 +00:00
|
|
|
// Dependencies: [2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: isSubscriptionRole, isSubscriptionRoleAvailableForPurchase
|
|
|
|
|
|
2026-09-10 19:12:31 +00:00
|
|
|
// Module 4234 (PremiumRoleUtils)
|
2026-09-10 05:38:07 +00:00
|
|
|
import size from "module_2" /* 2 */;
|
2026-08-24 06:08:38 +00:00
|
|
|
|
2026-09-10 05:38:07 +00:00
|
|
|
const result = size.fileFinishedImporting("modules/guild_role_subscriptions/PremiumRoleUtils.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export const isSubscriptionRole = function isSubscriptionRole(role) {
|
|
|
|
|
let prop;
|
2026-07-29 08:29:29 +00:00
|
|
|
if (role != null) {
|
2026-07-20 16:05:17 +00:00
|
|
|
const tags = role.tags;
|
2026-07-29 08:29:29 +00:00
|
|
|
if (tags != null) {
|
2026-07-20 16:05:17 +00:00
|
|
|
prop = tags.subscription_listing_id;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return null != prop;
|
|
|
|
|
};
|
2026-09-10 05:38:07 +00:00
|
|
|
export const isSubscriptionRoleAvailableForPurchase = function isSubscriptionRoleAvailableForPurchase(role) {
|
2026-07-20 16:05:17 +00:00
|
|
|
let prop;
|
2026-09-10 05:38:07 +00:00
|
|
|
if (role != null) {
|
|
|
|
|
const tags = role.tags;
|
2026-07-29 08:29:29 +00:00
|
|
|
if (tags != null) {
|
2026-07-20 16:05:17 +00:00
|
|
|
prop = tags.available_for_purchase;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return undefined !== prop;
|
|
|
|
|
};
|