decord/source/modules/forums/ForumManager.tsx

34 lines
1.1 KiB
TypeScript
Raw Normal View History

2026-08-14 17:33:39 +00:00
// Module ID: 16528
// Function ID: 16529
2026-07-29 08:29:29 +00:00
// Name: handleChannelPreload
2026-08-14 17:33:39 +00:00
// Dependencies: [1391, 1398, 5322, 5982, 2]
2026-07-20 16:05:17 +00:00
2026-08-14 17:33:39 +00:00
// Module 16528 (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-08-14 17:33:39 +00:00
require(5982) /* loadForumPostData */.preloadForumThreads(channel);
const obj2 = require(5982) /* 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;