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 User3y ago
Message Not Public
Sign In & Join Server To View
Squid
Squid3y 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
jrOP3y ago
:/ Pain
monbrey
monbrey3y 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
jrOP3y 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>
Want results from more Discord servers?
Add your server