decord/source/modules/forums/ForumManager.tsx

34 lines
1.1 KiB
TypeScript
Raw Normal View History

2026-07-30 10:14:41 +00:00
// Module ID: 16178
// Function ID: 16179
2026-07-29 08:29:29 +00:00
// Name: handleChannelPreload
2026-07-30 10:14:41 +00:00
// Dependencies: [1372, 1379, 5134, 6062, 2]
2026-07-20 16:05:17 +00:00
2026-07-30 10:14:41 +00:00
// Module 16178 (handleChannelPreload)
2026-07-29 08:29:29 +00:00
import ensureGuildLoaded from "ensureGuildLoaded";
2026-07-23 10:11:24 +00:00
import { isStaticChannelRoute } from "set";
2026-07-29 08:29:29 +00:00
import "initialize";
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-07-29 08:29:29 +00:00
class ForumManager extends tmp2 {
constructor() {
applyArgumentsResult = HermesBuiltin.applyArguments(new.target, new.target);
applyArgumentsResult.actions = { CHANNEL_PRELOAD: applyArgumentsResult.handleChannelPreload };
return applyArgumentsResult;
2026-07-20 16:05:17 +00:00
}
}
2026-07-29 08:29:29 +00:00
ForumManager.prototype["handleChannelPreload"] = function handleChannelPreload(channelId) {
channelId = channelId.channelId;
if (!isStaticChannelRoute(channelId)) {
channel = channel.getChannel(channelId);
if (tmp3) {
2026-07-30 10:14:41 +00:00
require(6062) /* loadForumPostData */.preloadForumThreads(channel);
const obj2 = require(6062) /* loadForumPostData */;
2026-07-29 08:29:29 +00:00
}
tmp3 = null != channel && channel.isForumLikeChannel();
}
};
const forumManager = new ForumManager();
const result = require("initialize").fileFinishedImporting("modules/forums/ForumManager.tsx");
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
export default forumManager;