Do not include expected wait_for responses in translated strings (#5364)

* Do not include 'I agree' prompt in translation string

* Add more stuff

* Address review comment

* Address review comments
This commit is contained in:
jack1142
2021-10-16 00:02:35 +02:00
committed by GitHub
parent 334cd4fa2a
commit 4b70acb989
8 changed files with 45 additions and 29 deletions

View File

@@ -55,9 +55,10 @@ class Cleanup(commands.Cog):
return True
prompt = await ctx.send(
_("Are you sure you want to delete {number} messages? (y/n)").format(
_("Are you sure you want to delete {number} messages?").format(
number=humanize_number(number)
)
+ " (yes/no)"
)
response = await ctx.bot.wait_for("message", check=MessagePredicate.same_context(ctx))