decord/source/modules/group_dm/getGroupDMRecipientLimit.tsx

49 lines
1.4 KiB
TypeScript
Raw Normal View History

// Module ID: 11597
// Function ID: 11598
2026-07-20 16:05:17 +00:00
// Name: getGroupDMRecipientLimit
// Dependencies: [1371, 11598, 1074, 1373, 1885, 11599, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
// Module 11597 (getGroupDMRecipientLimit)
import isPremiumAtLeast from "isPremiumAtLeast" /* 1885 */;
import closure_2 from "mergeGuildAvatar" /* 1371 */;
import { MAX_GROUP_DM_NITRO_PARTICIPANTS as closure_3 } from "MAX_GROUP_DM_NITRO_PARTICIPANTS" /* 11598 */;
import ME from "ME" /* 1074 */;
import { PremiumTypes } from "GuildFeatures" /* 1373 */;
2026-07-23 10:11:24 +00:00
2026-08-27 16:17:25 +00:00
require = arg1;
({ MAX_GROUP_DM_PARTICIPANTS: c4, MAX_GROUP_DM_STAFF_PARTICIPANTS: c5 } = ME);
2026-07-23 10:11:24 +00:00
const result = require("set").fileFinishedImporting("modules/group_dm/getGroupDMRecipientLimit.tsx");
2026-07-20 16:05:17 +00:00
2026-08-27 16:17:25 +00:00
export default function getGroupDMRecipientLimit() {
let obj = arg0;
if (arg0 === undefined) {
obj = {};
}
let flag = obj.useNitroCapExperiment;
if (flag === undefined) {
flag = false;
}
2026-07-23 10:11:24 +00:00
currentUser = currentUser.getCurrentUser();
2026-07-29 08:29:29 +00:00
let isStaffResult;
if (currentUser != null) {
isStaffResult = currentUser.isStaff();
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
if (isStaffResult) {
2026-08-27 16:17:25 +00:00
let tmp5 = closure_5;
2026-07-29 08:29:29 +00:00
} else {
2026-08-27 16:17:25 +00:00
if (flag) {
if (obj3.isPremium(currentUser, PremiumTypes.TIER_2)) {
if (tmp2Result.getGroupDMNitroCapConfig("getGroupDMRecipientLimit").enabled) {
tmp5 = closure_3;
}
tmp2Result = tmp2(11599);
2026-07-29 08:29:29 +00:00
}
2026-08-27 16:17:25 +00:00
obj3 = isPremiumAtLeast;
tmp2 = require;
2026-07-20 16:05:17 +00:00
}
2026-08-27 16:17:25 +00:00
tmp5 = closure_4;
2026-07-20 16:05:17 +00:00
}
2026-08-27 16:17:25 +00:00
return tmp5;
2026-07-20 16:05:17 +00:00
};