mirror of
https://github.com/Rapptz/discord.py.git
synced 2026-11-20 13:29:03 +00:00
[commands] Fix missing ctx in example
This commit is contained in:
1 parent
f07885973f
commit
b8ae05f59f
1 file changed
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user