decord/source/modules/channel/VoiceChannelBadgeExperiment.tsx
github-actions ecf26fc058 chore: update source for alpha 347.2
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4823.js (118.4 MB)
2026-09-16 07:03:15 +00:00

24 lines
1.4 KiB
TypeScript

// Module ID: 13330
// Function ID: 13331
// Name: VoiceChannelBadgeExperiment
// Dependencies: [4554, 4551, 2]
// Exports: getVoiceChannelBadgeExperiment, useVoiceChannelBadgeExperiment
// Module 13330 (VoiceChannelBadgeExperiment)
import ExperimentConstants from "ExperimentConstants" /* 4554 */;
import createExperiment from "module_4551" /* 4551 */;
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 });
};