GrantGryczan / Discord-Colorbot

A Discord bot to give users control over their username color
MIT License
0 stars 0 forks source link

Race conditions #1

Closed GrantGryczan closed 1 year ago

GrantGryczan commented 1 year ago

For example, deleting a channel before the bot gets a chance to edit an interaction reply in it (e.g. to update the /colorbot deletecolors progress message) causes an Unknown Message error, and deleting a server while the bot is initially deleting its unused color roles causes an Unknown Guild error.

GrantGryczan commented 1 year ago

The benefit of getting slightly fewer unimportant console errors is not worth the amount of unmaintainability that would have to be added to the codebase (all the .catches or functions wrapping .catches) to fix all minor race condition issues.