43 lines
995 B
TypeScript
43 lines
995 B
TypeScript
// Metro module 8007 (f8008).
|
|
import { CommonTriggerPoints } from "../experiments/ExperimentConstants";
|
|
import { createExperiment } from "../experiments/index";
|
|
const experiment = createExperiment({
|
|
id: "2026-03_voice_badge",
|
|
kind: "guild",
|
|
commonTriggerPoint: CommonTriggerPoints.VOICE_CALL,
|
|
label: "Display Voice Channel Badge",
|
|
defaultConfig: {
|
|
enabled: false
|
|
},
|
|
treatments: [{
|
|
id: 0,
|
|
label: "Control",
|
|
config: {
|
|
enabled: false
|
|
}
|
|
}, {
|
|
id: 1,
|
|
label: "Show voice badges",
|
|
config: {
|
|
enabled: true
|
|
}
|
|
}]
|
|
});
|
|
export { experiment as VoiceChannelBadgeExperiment };
|
|
export function useVoiceChannelBadgeExperiment(a0) {
|
|
return experiment.useExperiment({
|
|
guildId: a0.guildId,
|
|
location: a0.location
|
|
}, {
|
|
autoTrackExposure: true
|
|
});
|
|
}
|
|
export function getVoiceChannelBadgeExperiment(a0) {
|
|
return experiment.getCurrentConfig({
|
|
guildId: a0.guildId,
|
|
location: a0.location
|
|
}, {
|
|
autoTrackExposure: true
|
|
});
|
|
}
|