decord/alpha/source/modules/channel/VoiceChannelHoistingExperiment.tsx
github-actions 45f5884862 chore: update source for alpha 348.2
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/05xxx/module_5012.js (118.4 MB)
2026-09-23 06:49:31 +00:00

21 lines
1.3 KiB
TypeScript

// Module ID: 17837
// Function ID: 17838
// Name: VoiceChannelHoistingExperiment
// Dependencies: [4743, 4740, 2]
// Exports: useVoiceChannelHoistingExperiment
// Module 17837 (VoiceChannelHoistingExperiment)
import ExperimentConstants from "ExperimentConstants" /* 4743 */;
import createExperiment from "module_4740" /* 4740 */;
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 });
};