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

39 lines
1.7 KiB
TypeScript
Raw Normal View History

2026-07-31 08:44:05 +00:00
// Module ID: 16174
// Function ID: 16175
2026-07-29 08:29:29 +00:00
// Name: handleVoiceChannelSelect
2026-07-31 08:44:05 +00:00
// Dependencies: [5138, 16175, 15753, 2]
2026-07-20 16:05:17 +00:00
2026-07-31 08:44:05 +00:00
// Module 16174 (handleVoiceChannelSelect)
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 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-07-31 08:44:05 +00:00
const VoiceCallTriggerPoint = require(16175) /* commonTriggerPointConfiguration */.VoiceCallTriggerPoint;
2026-07-29 08:29:29 +00:00
const obj = { guildId: null };
obj[0] = guildId;
VoiceCallTriggerPoint.trigger(obj);
}
};
prototype["handleCallCreate"] = function handleCallCreate() {
2026-07-31 08:44:05 +00:00
const VoiceCallTriggerPoint = require(16175) /* commonTriggerPointConfiguration */.VoiceCallTriggerPoint;
2026-07-29 08:29:29 +00:00
VoiceCallTriggerPoint.trigger();
};
prototype["handleUserSettingsModalOpen"] = function handleUserSettingsModalOpen() {
2026-07-31 08:44:05 +00:00
const OpenUserSettingsTriggerPoint = require(15753) /* commonTriggerPointConfiguration */.OpenUserSettingsTriggerPoint;
2026-07-29 08:29:29 +00:00
OpenUserSettingsTriggerPoint.trigger();
};
const commonTriggerPointManager = new CommonTriggerPointManager();
const result = require("commonTriggerPointConfiguration").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;