Files
discord-decomp/modules/messages/VoiceChannelListInviteExperiment.tsx
T
2026-11-01 12:12:55 +02:00

30 lines
723 B
TypeScript

// Metro module 9497 (f9498).
import { createExperiment } from "../experiments/index";
const experiment = createExperiment({
kind: "guild",
id: "2026-05_voice_channel_list_invite_embed",
label: "Voice Channel List Invite Embed",
defaultConfig: {
enabled: false
},
treatments: [{
id: 1,
label: "Enable channel-list-style voice invite embed",
config: {
enabled: true
}
}]
});
export function getVoiceChannelListInviteExperiment(a0) {
return experiment.getCurrentConfig({
guildId: a0.guildId,
location: a0.location
});
}
export function useVoiceChannelListInviteExperiment(a0) {
return experiment.useExperiment({
guildId: a0.guildId,
location: a0.location
});
}