2026-10-06 22:12:49 +00:00
|
|
|
// Module ID: 17435
|
|
|
|
|
// Function ID: 17436
|
2026-09-18 20:18:48 +00:00
|
|
|
// Name: GuildSettingsUtils
|
2026-10-06 22:12:49 +00:00
|
|
|
// Dependencies: [2106, 1086, 1098, 16654, 2]
|
2026-09-18 20:18:48 +00:00
|
|
|
// Exports: getPowerfulPermissionTitles, isRolePowerful
|
|
|
|
|
|
2026-10-06 22:12:49 +00:00
|
|
|
// Module 17435 (GuildSettingsUtils)
|
|
|
|
|
import BigFlagUtilsAll from "BigFlagUtils" /* 1098 */;
|
|
|
|
|
import GuildRoleRecord from "GuildRoleRecord" /* 2106 */;
|
|
|
|
|
import PermissionSpecUtilsDefault from "PermissionSpecUtils" /* 16654 */;
|
|
|
|
|
import Constants from "Constants" /* 1086 */;
|
2026-09-18 20:18:48 +00:00
|
|
|
import size from "module_2" /* 2 */;
|
|
|
|
|
|
2026-10-06 22:12:49 +00:00
|
|
|
let closure_4;
|
|
|
|
|
let hasOwnProperty;
|
2026-09-18 20:18:48 +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-06 22:12:49 +00:00
|
|
|
const obj = BigFlagUtilsAll;
|
|
|
|
|
return obj.hasAny(role.permissions, React3);
|
2026-09-18 20:18:48 +00:00
|
|
|
};
|
|
|
|
|
export const getPowerfulPermissionTitles = function getPowerfulPermissionTitles(arg0, arg1) {
|
|
|
|
|
const items = [];
|
|
|
|
|
PermissionSpecUtilsDefault;
|
2026-10-06 22:12:49 +00:00
|
|
|
for (const item10015 of hasOwnProperty) {
|
2026-09-18 20:18:48 +00:00
|
|
|
let str = item10015;
|
|
|
|
|
if (hasPermission(arg1, item10015)) {
|
|
|
|
|
let arr = items.push(tmp2[str.toString(str)].title);
|
|
|
|
|
}
|
|
|
|
|
continue;
|
|
|
|
|
}
|
|
|
|
|
return items;
|
|
|
|
|
};
|