Discord's rate-limit documentation describes dynamic route buckets and different limit scopes. In a Discord API client, honor the response's retry timing rather than relying on a hard-coded requests-per-second guess.
Coordinate workers that share credentials or resources. Repeated immediate retries can prolong an interruption even when the original operation was harmless. Keep a rejected request queued only when replaying it is appropriate.