theovgl/alekol-42

`User.updateRole` should throw on error

Closed this issue · 1 comments

User.updateRole should throw on error so that the user can be notified that something went wrong in calling functions.

https://github.com/theovgl/bot_alekol/blob/5d2ae100a3315055d058e0212b5065b9ff06a136/src/User.js#L25-L63

If user.updateRole throws, it won't continue updating for each guilds. It is better to ignore errors in that case.