mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-06-07 12:18:59 +00:00
[commands] Fix missing ctx in example
This commit is contained in:
parent
f07885973f
commit
b8ae05f59f
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user