decord/source/modules/channel/VoiceChannelHoistingExperiment.tsx
2026-08-24 06:08:38 +00:00

20 lines
1.4 KiB
TypeScript

// Module ID: 16643
// Function ID: 16644
// Name: experiment
// Dependencies: [4293, 4290, 2]
// Exports: useVoiceChannelHoistingExperiment
// Module 16643 (experiment)
import set from "set" /* 2 */;
import ExperimentBuckets from "ExperimentBuckets" /* 4293 */;
import createExperiment from "createExperiment" /* 4290 */;
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 } }];
const experiment = createExperiment.createExperiment({ kind: "guild", id: "2025-12_voice_channel_hoisting", label: "Voice Channel Hoisting", commonTriggerPoint: ExperimentBuckets.CommonTriggerPoints.VOICE_CALL, defaultConfig: { enableWaveformIcon: false, enableHighlight: false }, treatments: items });
const obj = { kind: "guild", id: "2025-12_voice_channel_hoisting", label: "Voice Channel Hoisting", commonTriggerPoint: ExperimentBuckets.CommonTriggerPoints.VOICE_CALL, defaultConfig: { enableWaveformIcon: false, enableHighlight: false }, treatments: items };
const result = set.fileFinishedImporting("modules/channel/VoiceChannelHoistingExperiment.tsx");
export const VoiceChannelHoistingExperiment = experiment;
export const useVoiceChannelHoistingExperiment = function useVoiceChannelHoistingExperiment(guildId, location) {
return experiment.useExperiment({ guildId, location }, { autoTrackExposure: false });
};