decord/beta/source/modules/channel/VoiceChannelBadgeExperiment.tsx
github-actions 19e52f659f chore: update source for beta 347.11
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4973.js (118.4 MB)
2026-09-26 17:57:22 +00:00

24 lines
1.4 KiB
TypeScript

// Module ID: 13516
// Function ID: 13517
// Name: VoiceChannelBadgeExperiment
// Dependencies: [4704, 4701, 2]
// Exports: getVoiceChannelBadgeExperiment, useVoiceChannelBadgeExperiment
// Module 13516 (VoiceChannelBadgeExperiment)
import ExperimentConstants from "ExperimentConstants" /* 4704 */;
import createExperiment from "module_4701" /* 4701 */;
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 });
};