decord/alpha/source/modules/channel/VoiceChannelBadgeExperiment.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

24 lines
1.4 KiB
TypeScript

// Module ID: 13586
// Function ID: 13587
// Name: VoiceChannelBadgeExperiment
// Dependencies: [4745, 4742, 2]
// Exports: getVoiceChannelBadgeExperiment, useVoiceChannelBadgeExperiment
// Module 13586 (VoiceChannelBadgeExperiment)
import ExperimentConstants from "ExperimentConstants" /* 4745 */;
import createExperiment from "module_4742" /* 4742 */;
import size from "module_2" /* 2 */;
const obj = { id: "2026-03_voice_badge", kind: "guild", commonTriggerPoint: ExperimentConstants.CommonTriggerPoints.VOICE_CALL, label: "Display Voice Channel Badge", defaultConfig: { enabled: false }, treatments: null };
const items = [{ id: 0, label: "Control", config: { enabled: false } }, { id: 1, label: "Show voice badges", config: { enabled: true } }];
obj.treatments = items;
const experiment = createExperiment.createExperiment(obj);
const result = size.fileFinishedImporting("modules/channel/VoiceChannelBadgeExperiment.tsx");
export const VoiceChannelBadgeExperiment = experiment;
export const useVoiceChannelBadgeExperiment = function useVoiceChannelBadgeExperiment(guildId) {
return experiment.useExperiment({ guildId: guildId.guildId, location: guildId.location }, { autoTrackExposure: true });
};
export const getVoiceChannelBadgeExperiment = function getVoiceChannelBadgeExperiment(guildId) {
return experiment.getCurrentConfig({ guildId: guildId.guildId, location: guildId.location }, { autoTrackExposure: true });
};