mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 11:18:54 -05:00
Update bank.py (#3366)
This commit is contained in:
parent
2be4080bc6
commit
79dcd22ff6
@ -838,9 +838,9 @@ async def set_default_balance(amount: int, guild: discord.Guild = None) -> int:
|
|||||||
amount = int(amount)
|
amount = int(amount)
|
||||||
max_bal = await get_max_balance(guild)
|
max_bal = await get_max_balance(guild)
|
||||||
|
|
||||||
if not (0 < amount <= max_bal):
|
if not (0 <= amount <= max_bal):
|
||||||
raise ValueError(
|
raise ValueError(
|
||||||
"Amount must be greater than zero and less than {max}.".format(
|
"Amount must be greater than or equal zero and less than or equal {max}.".format(
|
||||||
max=humanize_number(max_bal, override_locale="en_US")
|
max=humanize_number(max_bal, override_locale="en_US")
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user