decord/alpha/source/modules/channel/VoiceChannelHoistingExperiment.tsx
github-actions 6eea20b8e1 chore: update source for alpha 348.3
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/05xxx/module_5014.js (118.4 MB)
2026-09-24 10:59:02 +00:00

21 lines
1.3 KiB
TypeScript

// Module ID: 17860
// Function ID: 17861
// Name: VoiceChannelHoistingExperiment
// Dependencies: [4745, 4742, 2]
// Exports: useVoiceChannelHoistingExperiment
// Module 17860 (VoiceChannelHoistingExperiment)
import ExperimentConstants from "ExperimentConstants" /* 4745 */;
import createExperiment from "module_4742" /* 4742 */;
import size from "module_2" /* 2 */;
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 };
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");
export const VoiceChannelHoistingExperiment = experiment;
export const useVoiceChannelHoistingExperiment = function useVoiceChannelHoistingExperiment(guildId, location) {
return experiment.useExperiment({ guildId, location }, { autoTrackExposure: false });
};