Browse Source

[commands] Fix missing ctx in example

pull/7854/head
Willy 3 years ago
committed by GitHub
parent
commit
b8ae05f59f
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      discord/ext/commands/parameters.py

2
discord/ext/commands/parameters.py

@ -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

Loading…
Cancel
Save