[commands] Fix missing ctx in example

This commit is contained in:
Willy 2022-04-06 19:24:17 -04:00 committed by GitHub
parent f07885973f
commit b8ae05f59f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -195,7 +195,7 @@ def parameter(
.. code-block:: python3 .. code-block:: python3
@bot.command() @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:') await ctx.send(f'Hello {to.mention} :wave:')
Parameters Parameters