decord/source/modules/group_dm/getGroupDMRecipientLimit.tsx

49 lines
1.4 KiB
TypeScript
Raw Normal View History

2026-09-01 10:26:29 +00:00
// Module ID: 16335
// Function ID: 16336
2026-07-20 16:05:17 +00:00
// Name: getGroupDMRecipientLimit
2026-09-01 10:26:29 +00:00
// Dependencies: [1922, 16336, 676, 1924, 1946, 16337, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-09-01 10:26:29 +00:00
// Module 16335 (getGroupDMRecipientLimit)
2026-08-31 15:47:37 +00:00
import isPremiumAtLeast from "isPremiumAtLeast" /* 1946 */;
import closure_2 from "mergeGuildAvatar" /* 1922 */;
2026-09-01 10:26:29 +00:00
import { MAX_GROUP_DM_NITRO_PARTICIPANTS as closure_3 } from "MAX_GROUP_DM_NITRO_PARTICIPANTS" /* 16336 */;
2026-08-24 06:08:38 +00:00
import ME from "ME" /* 676 */;
2026-08-31 15:47:37 +00:00
import { PremiumTypes } from "GuildFeatures" /* 1924 */;
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-01 10:26:29 +00:00
tmp2Result = tmp2(16337);
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
};