// Module ID: 16299 // Function ID: 16300 // Name: getGroupDMRecipientLimit // Dependencies: [1922, 16300, 676, 1924, 1946, 16301, 2] // Exports: default // Module 16299 (getGroupDMRecipientLimit) import isPremiumAtLeast from "isPremiumAtLeast" /* 1946 */; import closure_2 from "mergeGuildAvatar" /* 1922 */; import { MAX_GROUP_DM_NITRO_PARTICIPANTS as closure_3 } from "MAX_GROUP_DM_NITRO_PARTICIPANTS" /* 16300 */; import ME from "ME" /* 676 */; import { PremiumTypes } from "GuildFeatures" /* 1924 */; 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(16301); } obj3 = isPremiumAtLeast; tmp2 = require; } tmp5 = closure_4; } return tmp5; };