decord/source/modules/channel/isRoleRequired.tsx

41 lines
1.2 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 5292
// Function ID: 5293
2026-07-20 16:05:17 +00:00
// Name: isRoleRequired
2026-08-24 06:08:38 +00:00
// Dependencies: [1395, 505, 4029, 506, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-24 06:08:38 +00:00
// Module 5292 (isRoleRequired)
import set from "set" /* 2 */;
import sum from "sum" /* 505 */;
import fromStringAll from "fromString" /* 506 */;
import createChannelRecord from "createChannelRecord" /* 1395 */;
import applyOverwritesAll from "applyOverwrites" /* 4029 */;
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
let closure_2 = createChannelRecord.GUILD_NON_CATEGORY_CHANNEL_TYPES;
const Permissions = sum.Permissions;
const result = set.fileFinishedImporting("modules/channel/isRoleRequired.tsx");
2026-07-20 16:05:17 +00:00
export default function isRoleRequired(guild_id) {
if (null == guild_id) {
return false;
} else {
if (null != guild_id.guild_id) {
if (set.has(tmp9)) {
if (guild_id.isGuildVocal()) {
if (!obj.canEveryoneRole(Permissions.CONNECT, guild_id)) {
return true;
}
2026-08-24 06:08:38 +00:00
obj = applyOverwritesAll;
2026-07-20 16:05:17 +00:00
}
let hasItem = null != tmp4;
if (hasItem) {
2026-08-24 06:08:38 +00:00
hasItem = fromStringAll.has(tmp4.deny, Permissions.VIEW_CHANNEL);
const obj2 = fromStringAll;
2026-07-20 16:05:17 +00:00
}
return hasItem;
}
}
return false;
}
};