pxlsspace / PxlsBot

Modular Discord bot
ISC License
4 stars 2 forks source link

Queue starboard reaction handling to prevent data races #27

Closed netux closed 3 years ago

netux commented 3 years ago

Makes use of Promises to run reaction change callbacks in sequence.

This is an attempt to prevent a race condition where a reaction add/remove event happens before the previous one finishes processing, causing unintended side-effects like sending a board message twice.