Browse Source
Make app_commands.describe examples consistent
pull/8351/head
Mikey
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
discord/app_commands/commands.py
|
|
@ -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}') |
|
|
|