#Queuing operations with lower priority than usual

5 messages · Page 1 of 1 (latest)

karmic fable
#

seems like this question was never answered and i'm experiencing a similar issue; i use up the ratelimit when sending polls to each server at a specific time, and slash command replies tend to drop much more often during that time since they take longer than 3 seconds. is there anyway to prioritize the replies?

clever nimbus
#

Rate limits and processing api requests is handled by the rest package

#

By default, all requests are processed sequentially

karmic fable
clever umbra
#

Hey, I'd like to be able to schedule some API operations in a way that they don't block new commands from executing. Does Discord.JS use any type of priority queue for that? I'd like it to process commands etc. first, and then doing the scheduled stuff (e.g. processing older messages posted while the bot was offline), so that it doesn't run into rate limiting with responding to commands.