[commands] Fix missing ctx in example

This commit is contained in:
Willy authored and GitHub committed 2022-04-06 19:24:17 -04:00
1 parent f07885973f
commit b8ae05f59f
1 file changed
+1 -1
+1 -1
View File
@@ -195,7 +195,7 @@ def parameter(
.. code-block:: python3
@bot.command()
async def wave(to: discord.User = commands.parameter(default=lambda ctx: ctx.author)):
async def wave(ctx, to: discord.User = commands.parameter(default=lambda ctx: ctx.author)):
await ctx.send(f'Hello {to.mention} :wave:')
Parameters