Caching slash commands' autocomplete option results
Discord client caches autocomplete option results so that there're not many repetitive requests.
One bot has 2 options, user and string with autocomplete. You choose an user and you receive options in autocomplete based on that user, but when you change the user autocomplete shows the options for the previous user, but I would like to see options for the new user.
The solution to this issue is caching options not only based on the value of the current autocomplete option, but also based on all other options values.
1
Войдите в службу, чтобы оставить комментарий.
Комментарии
0 комментариев