35 lines
1.2 KiB
TypeScript
35 lines
1.2 KiB
TypeScript
// Module ID: 17802
|
|
// Function ID: 17803
|
|
// Name: GuildSettingsUtils
|
|
// Dependencies: [2107, 1085, 1097, 17009, 2]
|
|
// Exports: getPowerfulPermissionTitles, isRolePowerful
|
|
|
|
// Module 17802 (GuildSettingsUtils)
|
|
import BigFlagUtilsAll from "BigFlagUtils" /* 1097 */;
|
|
import GuildRoleRecord from "GuildRoleRecord" /* 2107 */;
|
|
import PermissionSpecUtilsDefault from "PermissionSpecUtils" /* 17009 */;
|
|
import Constants from "Constants" /* 1085 */;
|
|
import size from "module_2" /* 2 */;
|
|
|
|
let closure_4;
|
|
let hasOwnProperty;
|
|
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) {
|
|
const obj = BigFlagUtilsAll;
|
|
return obj.hasAny(role.permissions, React3);
|
|
};
|
|
export const getPowerfulPermissionTitles = function getPowerfulPermissionTitles(arg0, arg1) {
|
|
const items = [];
|
|
PermissionSpecUtilsDefault;
|
|
for (const item10015 of hasOwnProperty) {
|
|
let str = item10015;
|
|
if (hasPermission(arg1, item10015)) {
|
|
let arr = items.push(tmp2[str.toString(str)].title);
|
|
}
|
|
continue;
|
|
}
|
|
return items;
|
|
};
|