shuppet / raku-api-discord

Raku module for interacting with the Discord API.
https://shuppet.com
BSD 3-Clause "New" or "Revised" License
30 stars 3 forks source link

Rate limiting #23

Open kawaii opened 5 years ago

kawaii commented 5 years ago

The bot can be rate limited and Discord will tell us when we're allowed to send another request.

We don't know what to do about it because although we can probably enqueue a whole bunch of unsent messages, if we're being rate limited, this is unlikely to drain after any reasonable time.

Maybe we drop them? First up we need to honour that response and throttle ourselves.