decord/source/modules/channel/VoiceChannelBadgeExperiment.tsx
github-actions 20a21ad13f chore: update source for alpha 346.5
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4791.js (118.4 MB)
2026-09-11 19:12:58 +00:00

24 lines
1.4 KiB
TypeScript

// Module ID: 13280
// Function ID: 13281
// Name: VoiceChannelBadgeExperiment
// Dependencies: [4523, 4520, 2]
// Exports: getVoiceChannelBadgeExperiment, useVoiceChannelBadgeExperiment
// Module 13280 (VoiceChannelBadgeExperiment)
import ExperimentConstants from "ExperimentConstants" /* 4523 */;
import createExperiment from "module_4520" /* 4520 */;
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 });
};