2026-08-13 07:00:46 +00:00
|
|
|
// Module ID: 4835
|
|
|
|
|
// Function ID: 4836
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: isRoleRequired
|
2026-08-12 06:57:52 +00:00
|
|
|
// Dependencies: [1395, 505, 3994, 506, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: default
|
|
|
|
|
|
2026-08-13 07:00:46 +00:00
|
|
|
// Module 4835 (isRoleRequired)
|
2026-07-29 08:29:29 +00:00
|
|
|
import { GUILD_NON_CATEGORY_CHANNEL_TYPES as closure_2 } from "createChannelRecord";
|
2026-07-23 10:11:24 +00:00
|
|
|
import { Permissions } from "sum";
|
|
|
|
|
|
2026-07-29 08:29:29 +00:00
|
|
|
const result = require("applyOverwrites").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-12 06:57:52 +00:00
|
|
|
obj = importAll(3994);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
let hasItem = null != tmp4;
|
|
|
|
|
if (hasItem) {
|
2026-07-29 08:29:29 +00:00
|
|
|
hasItem = importAll(506).has(tmp4.deny, Permissions.VIEW_CHANNEL);
|
|
|
|
|
const obj2 = importAll(506);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
return hasItem;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
};
|