mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-12-07 09:52:30 -05:00
Humanize number fix (#6283)
Co-authored-by: Jakub Kuczys <me@jacken.men>
This commit is contained in:
@@ -758,9 +758,17 @@ class AudioSetCommands(MixinMeta, metaclass=CompositeMetaClass):
|
||||
"""Set a price for queueing tracks for non-mods, 0 to disable."""
|
||||
if price < 0:
|
||||
return await self.send_embed_msg(
|
||||
ctx, title=_("Invalid Price"), description=_("Price can't be less than zero.")
|
||||
ctx,
|
||||
title=_("Invalid Price"),
|
||||
description=_("Price can't be less than zero."),
|
||||
)
|
||||
if price == 0:
|
||||
elif price > 2**63 - 1:
|
||||
return await self.send_embed_msg(
|
||||
ctx,
|
||||
title=_("Invalid Price"),
|
||||
description=_("Price can't be greater than 2^63 - 1."),
|
||||
)
|
||||
elif price == 0:
|
||||
jukebox = False
|
||||
await self.send_embed_msg(
|
||||
ctx, title=_("Setting Changed"), description=_("Jukebox mode disabled.")
|
||||
|
||||
Reference in New Issue
Block a user