#Dropdown menu
1 messages · Page 1 of 1 (latest)
hang on idk what that site is
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
thats the official one mb
all good
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
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?
I've used them in simpler commands but nothing more than the basics
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."
I did not know
yup. You will need to use a database for those kinds of applications.
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.
alright. Stuff like that, I would recommend a handler for it. Its going to get very complicated, very fast.
Does this mean the command and the follow up question will be handled by it?
Do I have to re write all of the code then?
!paste
only your dropdown section
why. We have already figured out how to do the pasting
i thought i was typing in the testing channel
my network is networking today. sorry you guys carry ahead.
all good.
I've found an api that can help me with the calculation itself, you input the lonitude and latitude of your location and it calculates the time. https://api.sunrise-sunset.org/json?lat=46.444297&lng=-79.981757
And again, I've no idea where to start with implementing it once I get to that point
nice
@sturdy gorge can you help me with making the dropdowns with miru?
please don't ask to ask. Just send the question
@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.