JackSteel97 / SteelBot

A Discord Bot
GNU General Public License v3.0
0 stars 0 forks source link

Rate-Limit incoming events #23

Closed JackSteel97 closed 2 years ago

JackSteel97 commented 2 years ago

Currently, there is no limit on the number of voice update events that can occur for a user - discord also doesn't limit this. The bot should ensure that multiple events within the same short period of time do not get as far as database and network requests by discarding the event as early as possible.

This should be coupled with per-user locking for the entire update chain to ensure there is no parallel duplication of modifications

JackSteel97 commented 2 years ago

To use System.Threading.Channels on incoming event hooks