Humanize number fix (#6283)

Co-authored-by: Jakub Kuczys <me@jacken.men>
This commit is contained in:
aikaterna
2024-01-03 16:13:26 -08:00
committed by GitHub
parent 47a267b38b
commit 531b4fe357
6 changed files with 26 additions and 5 deletions

View File

@@ -54,6 +54,9 @@ class Cleanup(commands.Cog):
if ctx.assume_yes:
return True
if number > 2**63 - 1:
return await ctx.send(_("Try a smaller number instead."))
prompt = await ctx.send(
_("Are you sure you want to delete {number} messages?").format(
number=humanize_number(number)