Is there an efficient way to get date as option for interaction ?
I am actually making a discord bot for my university and I need to add a command to get the timetable, but the problem is, that I need a start date and a end date to get a range of courses, so for the moment users have to put date with YYYY-MM-DD format, like on the screen, but its not a really good way, its slow to type, does anyone know how can I improve this ?
Im using discordjs 13.2.0 but I can update if needed
8 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Not a discord.js issue? Check out #other-js-ts.
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!
- ✅
Marked as resolved by OPYou can use autocomplete to validate the time before sending, but there's currently a bug in there
And v13 is not supported anymore
wdym using autocomplete, I already have a function that validate if the date entered is correct or not
alr I will update so
You send them options while they type something
Ok I see
you talked about a bug in autocomplete
what is it ?
:issue_open: #7231 in discord/discord-api-docs by viztea opened <t:1729816913:R>
Entering custom values in an autocompleted option result in "Not a valid value"
Oh
okk
well thanks for everything