fit-ctu-discord / honza-botner

Bot for FIT CTU Discord
https://discord.fit.cvut.cz/
MIT License
15 stars 10 forks source link

Fix badge assignment #469

Closed Bertik23 closed 1 year ago

Bertik23 commented 1 year ago

Now it check whenever roles are changed if the member has still the required roles to have a badge.

Bertik23 commented 1 year ago

Additionaly the bug this fixes still happens in case the user has same amount of roles before and after event, like when we receive role removal and addition at the same time. (Might happen now, definitely will happen in the future after auth overwrite smile)

Can't find, where that is the problem. I couldn't find a single piece of code, that would check for that.