decord/source/modules/activities/utils/useIsPrivateChannelWithEnabledActivities.tsx

41 lines
1.2 KiB
TypeScript
Raw Normal View History

2026-08-08 06:10:11 +00:00
// Module ID: 10672
// Function ID: 10673
2026-07-20 16:05:17 +00:00
// Name: useIsPrivateChannelWithEnabledActivities
2026-07-29 08:29:29 +00:00
// Dependencies: [1372, 647, 2]
2026-07-20 16:05:17 +00:00
// Exports: default, isPrivateChannelWithEnabledActivities
2026-08-08 06:10:11 +00:00
// Module 10672 (useIsPrivateChannelWithEnabledActivities)
2026-07-29 08:29:29 +00:00
import ensureGuildLoaded from "ensureGuildLoaded";
2026-07-23 10:11:24 +00:00
const require = arg1;
const result = require("set").fileFinishedImporting("modules/activities/utils/useIsPrivateChannelWithEnabledActivities.tsx");
2026-07-20 16:05:17 +00:00
export default function useIsPrivateChannelWithEnabledActivities(arg0) {
2026-07-23 10:11:24 +00:00
const _require = arg0;
2026-07-29 08:29:29 +00:00
const items = [ensureGuildLoaded];
const stateFromStores = _require(647).useStateFromStores(items, () => outer1_2.getChannel(closure_0));
let flag;
if (stateFromStores != null) {
flag = stateFromStores.isPrivate();
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
if (flag == null) {
flag = false;
}
return flag;
2026-07-20 16:05:17 +00:00
};
2026-07-29 08:29:29 +00:00
export const isPrivateChannelWithEnabledActivities = function isPrivateChannelWithEnabledActivities(arg0) {
if (null == arg0) {
2026-07-20 16:05:17 +00:00
return false;
} else {
2026-07-29 08:29:29 +00:00
channel = channel.getChannel(arg0);
let flag;
if (channel != null) {
flag = channel.isPrivate();
}
if (flag == null) {
flag = false;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
return flag;
2026-07-20 16:05:17 +00:00
}
};