decord/beta/source/modules/links/isAccessibleNonStaticChannelPath.tsx

19 lines
697 B
TypeScript
Raw Normal View History

2026-10-02 13:37:24 +00:00
// Module ID: 6734
// Function ID: 6735
// Name: isAccessibleNonStaticChannelPath
2026-10-02 13:37:24 +00:00
// Dependencies: [2103, 4991, 2]
// Exports: default
2026-10-02 13:37:24 +00:00
// Module 6734 (isAccessibleNonStaticChannelPath)
import LinkUtils from "LinkUtils" /* 4991 */;
import GatedChannelStore from "GatedChannelStore" /* 2103 */;
2026-10-01 14:13:23 +00:00
import size from "module_2" /* 2 */;
const result = size.fileFinishedImporting("modules/links/isAccessibleNonStaticChannelPath.tsx");
export default function isAccessibleNonStaticChannelPath(guild_id) {
2026-10-01 14:13:23 +00:00
const obj = LinkUtils;
const canViewChannelResult = obj.canViewChannel(guild_id) || GatedChannelStore.isChannelGatedAndVisible(guild_id.guild_id, guild_id.id);
return canViewChannelResult;
};