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,15 +303,27 @@ def init_events(bot, cli_flags):
|
||||
await ctx.send(msg, delete_after=error.retry_after)
|
||||
elif isinstance(error, commands.MaxConcurrencyReached):
|
||||
if error.per is commands.BucketType.default:
|
||||
msg = _(
|
||||
"Too many people using this command."
|
||||
" It can only be used {number} time(s) concurrently."
|
||||
).format(number=error.number)
|
||||
if error.per > 1:
|
||||
msg = _(
|
||||
"Too many people using this command."
|
||||
" It can only be used {number} times concurrently."
|
||||
).format(number=error.number)
|
||||
else:
|
||||
msg = _(
|
||||
"Too many people using this command."
|
||||
" It can only be used {number} time concurrently."
|
||||
).format(number=error.number)
|
||||
else:
|
||||
msg = _(
|
||||
"Too many people using this command."
|
||||
" It can only be used {number} time(s) per {type} concurrently."
|
||||
).format(number=error.number, type=error.per.name)
|
||||
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)
|
||||
await ctx.send(msg)
|
||||
else:
|
||||
log.exception(type(error).__name__, exc_info=error)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user