decord/alpha/source/modules/channel/VoiceChannelHoistingExperiment.tsx

22 lines
1.3 KiB
TypeScript
Raw Normal View History

// Module ID: 17837
// Function ID: 17838
// Name: VoiceChannelHoistingExperiment
// Dependencies: [4743, 4740, 2]
2026-07-20 16:05:17 +00:00
// Exports: useVoiceChannelHoistingExperiment
// Module 17837 (VoiceChannelHoistingExperiment)
import ExperimentConstants from "ExperimentConstants" /* 4743 */;
import createExperiment from "module_4740" /* 4740 */;
import size from "module_2" /* 2 */;
2026-07-23 10:11:24 +00:00
const obj = { kind: "guild", id: "2025-12_voice_channel_hoisting", label: "Voice Channel Hoisting", commonTriggerPoint: ExperimentConstants.CommonTriggerPoints.VOICE_CALL, defaultConfig: { enableWaveformIcon: false, enableHighlight: false }, treatments: null };
2026-07-29 08:29:29 +00:00
const items = [{ id: 1, label: "Both waveform and highlight", config: { enableWaveformIcon: true, enableHighlight: true } }, { id: 2, label: "Waveform icon only", config: { enableWaveformIcon: true, enableHighlight: false } }];
obj.treatments = items;
const experiment = createExperiment.createExperiment(obj);
const result = size.fileFinishedImporting("modules/channel/VoiceChannelHoistingExperiment.tsx");
2026-07-20 16:05:17 +00:00
export const VoiceChannelHoistingExperiment = experiment;
export const useVoiceChannelHoistingExperiment = function useVoiceChannelHoistingExperiment(guildId, location) {
return experiment.useExperiment({ guildId, location }, { autoTrackExposure: false });
};