decord/beta/source/modules/channel/VoiceChannelHoistingExperiment.tsx
2026-10-01 14:13:23 +00:00

23 lines
1.3 KiB
TypeScript

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