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

22 lines
1.3 KiB
TypeScript
Raw Normal View History

// Module ID: 17860
// Function ID: 17861
// Name: VoiceChannelHoistingExperiment
// Dependencies: [4745, 4742, 2]
2026-07-20 16:05:17 +00:00
// Exports: useVoiceChannelHoistingExperiment
// Module 17860 (VoiceChannelHoistingExperiment)
import ExperimentConstants from "ExperimentConstants" /* 4745 */;
import createExperiment from "module_4742" /* 4742 */;
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 });
};