decord/source/modules/group_dm/getGroupDMRecipientLimit.tsx
2026-08-28 06:19:39 +00:00

48 lines
1.4 KiB
TypeScript

// Module ID: 16265
// Function ID: 16266
// Name: getGroupDMRecipientLimit
// Dependencies: [1923, 16266, 676, 1925, 1947, 16267, 2]
// Exports: default
// Module 16265 (getGroupDMRecipientLimit)
import isPremiumAtLeast from "isPremiumAtLeast" /* 1947 */;
import closure_2 from "mergeGuildAvatar" /* 1923 */;
import { MAX_GROUP_DM_NITRO_PARTICIPANTS as closure_3 } from "MAX_GROUP_DM_NITRO_PARTICIPANTS" /* 16266 */;
import ME from "ME" /* 676 */;
import { PremiumTypes } from "GuildFeatures" /* 1925 */;
require = arg1;
({ MAX_GROUP_DM_PARTICIPANTS: c4, MAX_GROUP_DM_STAFF_PARTICIPANTS: c5 } = ME);
const result = require("set").fileFinishedImporting("modules/group_dm/getGroupDMRecipientLimit.tsx");
export default function getGroupDMRecipientLimit() {
let obj = arg0;
if (arg0 === undefined) {
obj = {};
}
let flag = obj.useNitroCapExperiment;
if (flag === undefined) {
flag = false;
}
currentUser = currentUser.getCurrentUser();
let isStaffResult;
if (currentUser != null) {
isStaffResult = currentUser.isStaff();
}
if (isStaffResult) {
let tmp5 = closure_5;
} else {
if (flag) {
if (obj3.isPremium(currentUser, PremiumTypes.TIER_2)) {
if (tmp2Result.getGroupDMNitroCapConfig("getGroupDMRecipientLimit").enabled) {
tmp5 = closure_3;
}
tmp2Result = tmp2(16267);
}
obj3 = isPremiumAtLeast;
tmp2 = require;
}
tmp5 = closure_4;
}
return tmp5;
};