#How do you create these various component types?
1 messages · Page 1 of 1 (latest)
are you using the interaction framework?
ty
hmm
so you want something with a literal select menu component that is capped at 25 options?
Oh no I was trying to experiment and just use all the different types of components
If I can just find like a constructor for each I'll bet I can figure it out from there
like - adding a role select or something like that - maybe that's just for modal popups?
oh yeah
var componentsV2 = new ComponentBuilderV2()
.WithContainer(new ContainerBuilder()
.WithActionRow([
new SelectMenuBuilder(
customId: "colorSelect",
placeholder: "Choose a color",
options: [
new SelectMenuOptionBuilder(label: "Red", value: "red"),
new SelectMenuOptionBuilder(label: "Blue", value: "blue"),
new SelectMenuOptionBuilder(label: "Green", value: "green"),
new SelectMenuOptionBuilder(label: "Yellow", value: "yellow")
]
)
])
)
.Build();
as for getting the value to be roles
I am actually kind of confused
lol in that case we're in the same boat
maybe it's an optional parm under select menu builder
haha, that's it
yeah
although it's interseting that you can pick button in there
that's a future experiment though, thanks a ton for your help, I think those select options were the only ones I was really missing
good job!
just cuz the enum got reused
you can set the type to SelectMenu - Role - User - Mentionable - Channel select
Awesome - ty