Make app_commands.describe examples consistent

This commit is contained in:
Mikey 2022-08-16 17:10:14 -07:00 committed by GitHub
parent 84c233eb0e
commit 659d6b6123
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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}')