Skip to content

Commit

Permalink
Make app_commands.describe examples consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
sgtlaggy authored Aug 17, 2022
1 parent 84c233e commit 659d6b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion discord/app_commands/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}')
Expand Down

0 comments on commit 659d6b6

Please sign in to comment.