2026-10-12 16:32:48 +00:00
|
|
|
// Module ID: 18429
|
|
|
|
|
// Function ID: 18430
|
2026-09-18 19:45:33 +00:00
|
|
|
// Name: GuildSettingsUtils
|
2026-10-12 16:32:48 +00:00
|
|
|
// Dependencies: [2120, 1085, 1097, 17593, 2]
|
2026-09-18 19:45:33 +00:00
|
|
|
// Exports: getPowerfulPermissionTitles, isRolePowerful
|
|
|
|
|
|
2026-10-12 16:32:48 +00:00
|
|
|
// Module 18429 (GuildSettingsUtils)
|
2026-10-07 22:43:51 +00:00
|
|
|
import BigFlagUtilsAll from "BigFlagUtils" /* 1097 */;
|
2026-10-12 16:32:48 +00:00
|
|
|
import GuildRoleRecord from "GuildRoleRecord" /* 2120 */;
|
|
|
|
|
import PermissionSpecUtilsDefault from "PermissionSpecUtils" /* 17593 */;
|
2026-10-07 22:43:51 +00:00
|
|
|
import Constants from "Constants" /* 1085 */;
|
2026-09-18 19:45:33 +00:00
|
|
|
import size from "module_2" /* 2 */;
|
|
|
|
|
|
2026-10-01 14:13:23 +00:00
|
|
|
let closure_4;
|
|
|
|
|
let hasOwnProperty;
|
2026-09-18 19:45:33 +00:00
|
|
|
const hasPermission = GuildRoleRecord.hasPermission;
|
|
|
|
|
({ ElevatedPermissions: closure_4, ElevatedPermissionsList: hasOwnProperty } = Constants);
|
|
|
|
|
const result = size.fileFinishedImporting("modules/guild_settings/GuildSettingsUtils.tsx");
|
|
|
|
|
|
|
|
|
|
export const isRolePowerful = function isRolePowerful(role) {
|
2026-10-01 14:13:23 +00:00
|
|
|
const obj = BigFlagUtilsAll;
|
|
|
|
|
return obj.hasAny(role.permissions, React3);
|
2026-09-18 19:45:33 +00:00
|
|
|
};
|
|
|
|
|
export const getPowerfulPermissionTitles = function getPowerfulPermissionTitles(arg0, arg1) {
|
|
|
|
|
const items = [];
|
|
|
|
|
PermissionSpecUtilsDefault;
|
2026-10-01 14:13:23 +00:00
|
|
|
for (const item10015 of hasOwnProperty) {
|
2026-09-18 19:45:33 +00:00
|
|
|
let str = item10015;
|
|
|
|
|
if (hasPermission(arg1, item10015)) {
|
|
|
|
|
let arr = items.push(tmp2[str.toString(str)].title);
|
|
|
|
|
}
|
|
|
|
|
continue;
|
|
|
|
|
}
|
|
|
|
|
return items;
|
|
|
|
|
};
|