decord/source/modules/experiments/trigger_points/CommonTriggerPointManager.tsx

42 lines
1.9 KiB
TypeScript
Raw Normal View History

2026-08-27 16:17:25 +00:00
// Module ID: 16824
// Function ID: 16825
2026-07-29 08:29:29 +00:00
// Name: handleVoiceChannelSelect
2026-08-27 16:17:25 +00:00
// Dependencies: [5438, 16825, 16396, 2]
2026-07-20 16:05:17 +00:00
2026-08-27 16:17:25 +00:00
// Module 16824 (handleVoiceChannelSelect)
import initializeDefault from "initialize" /* 5438 */;
import commonTriggerPointConfiguration from "commonTriggerPointConfiguration" /* 16396 */;
import commonTriggerPointConfiguration2 from "commonTriggerPointConfiguration" /* 16825 */;
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
require = arg1;
initializeDefault;
2026-07-29 08:29:29 +00:00
class CommonTriggerPointManager extends tmp2 {
constructor() {
applyArgumentsResult = HermesBuiltin.applyArguments(new.target, new.target);
applyArgumentsResult.actions = { VOICE_CHANNEL_SELECT: applyArgumentsResult.handleVoiceChannelSelect, CALL_CREATE: applyArgumentsResult.handleCallCreate, USER_SETTINGS_MODAL_OPEN: applyArgumentsResult.handleUserSettingsModalOpen };
return applyArgumentsResult;
2026-07-20 16:05:17 +00:00
}
}
2026-07-29 08:29:29 +00:00
const prototype = CommonTriggerPointManager.prototype;
prototype["handleVoiceChannelSelect"] = function handleVoiceChannelSelect(guildId) {
guildId = guildId.guildId;
if (null != guildId.channelId) {
2026-08-24 06:08:38 +00:00
const VoiceCallTriggerPoint = commonTriggerPointConfiguration2.VoiceCallTriggerPoint;
2026-07-29 08:29:29 +00:00
const obj = { guildId: null };
obj[0] = guildId;
VoiceCallTriggerPoint.trigger(obj);
}
};
prototype["handleCallCreate"] = function handleCallCreate() {
2026-08-24 06:08:38 +00:00
const VoiceCallTriggerPoint = commonTriggerPointConfiguration2.VoiceCallTriggerPoint;
2026-07-29 08:29:29 +00:00
VoiceCallTriggerPoint.trigger();
};
prototype["handleUserSettingsModalOpen"] = function handleUserSettingsModalOpen() {
2026-08-24 06:08:38 +00:00
const OpenUserSettingsTriggerPoint = commonTriggerPointConfiguration.OpenUserSettingsTriggerPoint;
2026-07-29 08:29:29 +00:00
OpenUserSettingsTriggerPoint.trigger();
};
const commonTriggerPointManager = new CommonTriggerPointManager();
2026-08-24 06:08:38 +00:00
const result = require("set").fileFinishedImporting("modules/experiments/trigger_points/CommonTriggerPointManager.tsx");
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
export default commonTriggerPointManager;