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

22 lines
733 B
TypeScript
Raw Normal View History

// Module ID: 6929
// Function ID: 6930
// Name: isAccessibleNonStaticChannelPath
// Dependencies: [2100, 5020, 2]
// Exports: default
// Module 6929 (isAccessibleNonStaticChannelPath)
import LinkUtils from "LinkUtils" /* 5020 */;
import GatedChannelStore from "GatedChannelStore" /* 2100 */;
require = fn;
const size = fn(2);
const result = size.fileFinishedImporting("modules/links/isAccessibleNonStaticChannelPath.tsx");
export default function isAccessibleNonStaticChannelPath(guild_id) {
let canViewChannelResult = LinkUtils.canViewChannel(guild_id);
if (!canViewChannelResult) {
canViewChannelResult = GatedChannelStore.isChannelGatedAndVisible(guild_id.guild_id, guild_id.id);
}
return canViewChannelResult;
};