#How do you create these various component types?

1 messages · Page 1 of 1 (latest)

formal mesa
#

I only see a builder for button and there is no clear way in the docs to create - for example - a RoleSelectBuilder

drowsy saddle
#

are you using the interaction framework?

formal mesa
#

I am not sure - just started messing with components v2

drowsy saddle
#

oh

#

look at the image

#

you sent in your orignal message

formal mesa
#

yeah?

#

Sorry I'm not sure what I am supposed to be seeing in there

drowsy saddle
#

yeah no i messed up

#

here gimme a min

#

I will get you what you need

formal mesa
#

ty

drowsy saddle
#

hmm

#

so you want something with a literal select menu component that is capped at 25 options?

formal mesa
#

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?

drowsy saddle
#

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

formal mesa
#

lol in that case we're in the same boat

#

maybe it's an optional parm under select menu builder

#

haha, that's it

drowsy saddle
#

yeah

formal mesa
#

although it's interseting that you can pick button in there

drowsy saddle
#

I just ofund it as well by using a normal select menu

#

yeah...

formal mesa
#

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

drowsy saddle
#

good job!

frigid girder
#

you can set the type to SelectMenu - Role - User - Mentionable - Channel select

formal mesa
#

Awesome - ty