#Dropdown menu

1 messages · Page 1 of 1 (latest)

sturdy gorge
#

hang on idk what that site is

#

thats the official one mb

pine skiff
#

all good

sturdy gorge
#

okay, first suggestion, is to use a lib like #miru or #flare . They are component handlers. They will save you a lot of time, and make your code a little cleaner.

Can I ask, is there an error your recieving from this code?

#

also, you know that whenever the bot shutsdown, user preferences is cleared right?

pine skiff
#

no errors rn, except for yk, the if statement that's not finished

#

I get this warning but nothing else

"W 2024-05-12 13:12:28,927 miru.client: Unknown component interaction received for component: 'region_select'. Did you forget to start a view?
You can disable this warning by setting 'ignore_unknown_interactions' to True in the client constructor, or by setting an unhandled component interaction hook."

sturdy gorge
#

yup. You will need to use a database for those kinds of applications.

pine skiff
#

What about the dropdown menu

#

I still haven't figured out how to add an option after the user selects their region. I want them to further specify where they are located, so a follow up question.

sturdy gorge
#

alright. Stuff like that, I would recommend a handler for it. Its going to get very complicated, very fast.

pine skiff
#

Does this mean the command and the follow up question will be handled by it?

sturdy gorge
#

sure will

#

I have experience in miru, but its your choice.

pine skiff
#

Do I have to re write all of the code then?

fleet dew
#

!paste

sturdy gorge
#

only your dropdown section

sturdy gorge
fleet dew
#

blobPain i thought i was typing in the testing channel

#

my network is networking today. sorry you guys carry ahead.

sturdy gorge
#

all good.

pine skiff
#

And again, I've no idea where to start with implementing it once I get to that point

pine skiff
#

@sturdy gorge can you help me with making the dropdowns with miru?

sturdy gorge
#

please don't ask to ask. Just send the question

pine skiff
#

@sturdy gorge sorry for the late response had some exams to study for :)

Here's the basic code from the documentation examples, I've tried to add a follow up question but failed, I'm really confused by every single doc I went through including lightbulb, hikari and miru. I'm kinda unmotivated and they've not been much help to me.