decord/source/modules/channel/VoiceChannelHoistingExperiment.tsx

21 lines
1.4 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 16643
// Function ID: 16644
2026-07-29 08:29:29 +00:00
// Name: experiment
2026-08-24 06:08:38 +00:00
// Dependencies: [4293, 4290, 2]
2026-07-20 16:05:17 +00:00
// Exports: useVoiceChannelHoistingExperiment
2026-08-24 06:08:38 +00:00
// Module 16643 (experiment)
import set from "set" /* 2 */;
import ExperimentBuckets from "ExperimentBuckets" /* 4293 */;
import createExperiment from "createExperiment" /* 4290 */;
2026-07-23 10:11:24 +00:00
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 } }];
2026-08-24 06:08:38 +00:00
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");
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 });
};