decord/source/modules/group_dm/getGroupDMRecipientLimit.tsx

49 lines
1.4 KiB
TypeScript
Raw Normal View History

2026-09-03 10:05:34 +00:00
// Module ID: 16588
// Function ID: 16589
2026-07-20 16:05:17 +00:00
// Name: getGroupDMRecipientLimit
2026-09-03 10:05:34 +00:00
// Dependencies: [1921, 16589, 673, 1923, 1945, 16590, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-09-03 10:05:34 +00:00
// Module 16588 (getGroupDMRecipientLimit)
2026-09-02 09:53:35 +00:00
import isPremiumAtLeast from "isPremiumAtLeast" /* 1945 */;
import closure_2 from "mergeGuildAvatar" /* 1921 */;
2026-09-03 10:05:34 +00:00
import { MAX_GROUP_DM_NITRO_PARTICIPANTS as closure_3 } from "MAX_GROUP_DM_NITRO_PARTICIPANTS" /* 16589 */;
2026-09-02 09:53:35 +00:00
import ME from "ME" /* 673 */;
import { PremiumTypes } from "GuildFeatures" /* 1923 */;
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;
}
2026-09-03 10:05:34 +00:00
tmp2Result = tmp2(16590);
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
};