#Is there an efficient way to get date as option for interaction ?

14 messages · Page 1 of 1 (latest)

rare lion
#

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

steep pathBOT
#
  • What's your exact discord.js npm list discord.js and node node -v version?
  • Not a discord.js issue? Check out #1081585952654360687.
  • 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 OP
naive mural
#

You can use autocomplete to validate the time before sending, but there's currently a bug in there

#

And v13 is not supported anymore

rare lion
rare lion
naive mural
hollow lichenBOT
rare lion
#

you talked about a bug in autocomplete

#

what is it ?

plain torrentBOT