mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 11:18:54 -05:00
Fixes concurrency spelling with time(s) (#4450)
* Change spelling * Change for translation
This commit is contained in:
parent
bd0955ac44
commit
7db2ba556d
@ -303,14 +303,26 @@ def init_events(bot, cli_flags):
|
|||||||
await ctx.send(msg, delete_after=error.retry_after)
|
await ctx.send(msg, delete_after=error.retry_after)
|
||||||
elif isinstance(error, commands.MaxConcurrencyReached):
|
elif isinstance(error, commands.MaxConcurrencyReached):
|
||||||
if error.per is commands.BucketType.default:
|
if error.per is commands.BucketType.default:
|
||||||
|
if error.per > 1:
|
||||||
msg = _(
|
msg = _(
|
||||||
"Too many people using this command."
|
"Too many people using this command."
|
||||||
" It can only be used {number} time(s) concurrently."
|
" It can only be used {number} times concurrently."
|
||||||
).format(number=error.number)
|
).format(number=error.number)
|
||||||
else:
|
else:
|
||||||
msg = _(
|
msg = _(
|
||||||
"Too many people using this command."
|
"Too many people using this command."
|
||||||
" It can only be used {number} time(s) per {type} concurrently."
|
" It can only be used {number} time concurrently."
|
||||||
|
).format(number=error.number)
|
||||||
|
else:
|
||||||
|
if error.per > 1:
|
||||||
|
msg = _(
|
||||||
|
"Too many people using this command."
|
||||||
|
" It can only be used {number} times per {type} concurrently."
|
||||||
|
).format(number=error.number, type=error.per.name)
|
||||||
|
else:
|
||||||
|
msg = _(
|
||||||
|
"Too many people using this command."
|
||||||
|
" It can only be used {number} time per {type} concurrently."
|
||||||
).format(number=error.number, type=error.per.name)
|
).format(number=error.number, type=error.per.name)
|
||||||
await ctx.send(msg)
|
await ctx.send(msg)
|
||||||
else:
|
else:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user