mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 03:08:55 -05:00
Improve grammar in max concurrency error (#4501)
* better concurrency grammar * remove casing * Apply Bread's suggestion per Draper's comment Co-authored-by: Sean <29239704+Bakersbakebread@users.noreply.github.com> * Thanks Pred Co-authored-by: Predeactor <61093863+Predeactor@users.noreply.github.com> Co-authored-by: jack1142 <6032823+jack1142@users.noreply.github.com> Co-authored-by: Sean <29239704+Bakersbakebread@users.noreply.github.com> Co-authored-by: Predeactor <61093863+Predeactor@users.noreply.github.com>
This commit is contained in:
parent
7f587ea46b
commit
8280067b7e
@ -311,8 +311,19 @@ def init_events(bot, cli_flags):
|
|||||||
else:
|
else:
|
||||||
msg = _(
|
msg = _(
|
||||||
"Too many people using this command."
|
"Too many people using this command."
|
||||||
" It can only be used {number} time concurrently."
|
" It can only be used once concurrently."
|
||||||
).format(number=error.number)
|
)
|
||||||
|
elif error.per in (commands.BucketType.user, commands.BucketType.member):
|
||||||
|
if error.number > 1:
|
||||||
|
msg = _(
|
||||||
|
"That command is still completing,"
|
||||||
|
" it can only be used {number} times per {type} concurrently."
|
||||||
|
).format(number=error.number, type=error.per.name)
|
||||||
|
else:
|
||||||
|
msg = _(
|
||||||
|
"That command is still completing,"
|
||||||
|
" it can only be used once per {type} concurrently."
|
||||||
|
).format(type=error.per.name)
|
||||||
else:
|
else:
|
||||||
if error.number > 1:
|
if error.number > 1:
|
||||||
msg = _(
|
msg = _(
|
||||||
@ -322,8 +333,8 @@ def init_events(bot, cli_flags):
|
|||||||
else:
|
else:
|
||||||
msg = _(
|
msg = _(
|
||||||
"Too many people using this command."
|
"Too many people using this command."
|
||||||
" It can only be used {number} time per {type} concurrently."
|
" It can only be used once per {type} concurrently."
|
||||||
).format(number=error.number, type=error.per.name)
|
).format(type=error.per.name)
|
||||||
await ctx.send(msg)
|
await ctx.send(msg)
|
||||||
else:
|
else:
|
||||||
log.exception(type(error).__name__, exc_info=error)
|
log.exception(type(error).__name__, exc_info=error)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user