Closed xFGhoul closed 2 years ago
I don't know if this is possible or not but this method would return an int based on the amount of xp needed for a level
int
xp
It's similar to next_level_up() but instead of returning the remaining amount it returns the total amount
next_level_up()
remaining
total
Example:
xp_needed_for_level_2 = await DiscordLevelingSystem.get_xp_for_level(2) print(xp_needed_for_level_2) # >>> 200 (Example int)
I support this idea, would be a really good utility method
Surprised I never added this. Thanks for the request! It has been added to the library.
I don't know if this is possible or not but this method would return an
int
based on the amount ofxp
needed for a levelIt's similar to
next_level_up()
but instead of returning theremaining
amount it returns thetotal
amountExample: