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•3y ago
Message Not Public
Sign In & Join Server To View
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
:/
Pain
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
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>