Autocomplete is slow

Is there a way to make slash command autocomplete more responsive? Right now it's taking like a second for autocomplete results to pop up.
5 Replies
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Squid
Squid2y ago
You should try to avoid resource-intensive functions like making API calls from receiving the interaction to responding to it, but you sometimes the API is simply slower than you'd prefer
jr
jr2y ago
:/ Pain
monbrey
monbrey2y ago
My autocompletes that need to make API calls cache the data where possible. Instead of querying the database or API every time, I just fetch all the data on the first use and let JS search it natively
jr
jr2y ago
My autocomplete logic in this case is lightning fast, no api calls or expensive algorithms. So I guess it's just discord being slow <:bing_shrug:583791581497393162>