Browse Source
Switch quotes to make docs example render properly
pull/8349/head
Bluesy
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
4 additions and
4 deletions
-
discord/app_commands/commands.py
|
|
@ -2082,7 +2082,7 @@ def context_menu( |
|
|
|
|
|
|
|
|
|
|
|
def describe(**parameters: Union[str, locale_str]) -> Callable[[T], T]: |
|
|
|
r"""Describes the given parameters by their name using the key of the keyword argument |
|
|
|
r'''Describes the given parameters by their name using the key of the keyword argument |
|
|
|
as the name. |
|
|
|
|
|
|
|
Example: |
|
|
@ -2102,13 +2102,13 @@ def describe(**parameters: Union[str, locale_str]) -> Callable[[T], T]: |
|
|
|
|
|
|
|
@app_commands.command() |
|
|
|
async def ban(interaction: discord.Interaction, member: discord.Member): |
|
|
|
\"\"\"Bans a member |
|
|
|
"""Bans a member |
|
|
|
|
|
|
|
Parameters |
|
|
|
----------- |
|
|
|
member: discord.Member |
|
|
|
the member to ban |
|
|
|
\"\"\" |
|
|
|
""" |
|
|
|
await interaction.response.send_message(f'Banned {member}') |
|
|
|
|
|
|
|
Parameters |
|
|
@ -2120,7 +2120,7 @@ def describe(**parameters: Union[str, locale_str]) -> Callable[[T], T]: |
|
|
|
-------- |
|
|
|
TypeError |
|
|
|
The parameter name is not found. |
|
|
|
""" |
|
|
|
''' |
|
|
|
|
|
|
|
def decorator(inner: T) -> T: |
|
|
|
if isinstance(inner, Command): |
|
|
|