GrafeasGroup / buttercup

Our personal assistant in Discord
MIT License
5 stars 2 forks source link

Fix next rank determination for maximum rank #156

Closed TimJentzsch closed 2 years ago

TimJentzsch commented 2 years ago

For the /until command, the next rank of the user is taken as default. If the user already has the highest rank, it fails with an error.

The function to determine the next rank should explicitly return an Optional value, which needs to be handled in the command.