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
No description
8 Replies
d.js toolkit
d.js toolkit4w ago
- 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 OP
Syjalo
Syjalo4w ago
You can use autocomplete to validate the time before sending, but there's currently a bug in there And v13 is not supported anymore
SaumonDeLuxe
SaumonDeLuxeOP4w ago
wdym using autocomplete, I already have a function that validate if the date entered is correct or not alr I will update so
Syjalo
Syjalo4w ago
You send them options while they type something
d.js docs
d.js docs4w ago
:guide: Slash Commands: Autocomplete read more
SaumonDeLuxe
SaumonDeLuxeOP4w ago
Ok I see you talked about a bug in autocomplete what is it ?
GitHub
GitHub4w ago
: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"
SaumonDeLuxe
SaumonDeLuxeOP4w ago
Oh okk well thanks for everything
Want results from more Discord servers?
Add your server