mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-21 00:07:51 +00:00
Make app_commands.describe examples consistent
This commit is contained in:
parent
84c233eb0e
commit
659d6b6123
@ -2089,7 +2089,7 @@ def describe(**parameters: Union[str, locale_str]) -> Callable[[T], T]:
|
||||
|
||||
.. code-block:: python3
|
||||
|
||||
@app_commands.command()
|
||||
@app_commands.command(description='Bans a member')
|
||||
@app_commands.describe(member='the member to ban')
|
||||
async def ban(interaction: discord.Interaction, member: discord.Member):
|
||||
await interaction.response.send_message(f'Banned {member}')
|
||||
|
Loading…
x
Reference in New Issue
Block a user