decord/beta/source/modules/channel/VoiceChannelBadgeExperiment.tsx
github-actions 84d017ff78 chore: update source for beta 348.6
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/05xxx/module_5021.js (118.4 MB)
2026-09-28 16:18:32 +00:00

24 lines
1.4 KiB
TypeScript

// Module ID: 12756
// Function ID: 12757
// Name: VoiceChannelBadgeExperiment
// Dependencies: [4751, 4748, 2]
// Exports: getVoiceChannelBadgeExperiment, useVoiceChannelBadgeExperiment
// Module 12756 (VoiceChannelBadgeExperiment)
import ExperimentConstants from "ExperimentConstants" /* 4751 */;
import createExperiment from "module_4748" /* 4748 */;
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 });
};