mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-05-12 08:49:48 +00:00
Switch quotes to make docs example render properly
This commit is contained in:
parent
3aa3c36c4f
commit
f12cdd5f90
@ -2082,7 +2082,7 @@ def context_menu(
|
|||||||
|
|
||||||
|
|
||||||
def describe(**parameters: Union[str, locale_str]) -> Callable[[T], T]:
|
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.
|
as the name.
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
@ -2102,13 +2102,13 @@ def describe(**parameters: Union[str, locale_str]) -> Callable[[T], T]:
|
|||||||
|
|
||||||
@app_commands.command()
|
@app_commands.command()
|
||||||
async def ban(interaction: discord.Interaction, member: discord.Member):
|
async def ban(interaction: discord.Interaction, member: discord.Member):
|
||||||
\"\"\"Bans a member
|
"""Bans a member
|
||||||
|
|
||||||
Parameters
|
Parameters
|
||||||
-----------
|
-----------
|
||||||
member: discord.Member
|
member: discord.Member
|
||||||
the member to ban
|
the member to ban
|
||||||
\"\"\"
|
"""
|
||||||
await interaction.response.send_message(f'Banned {member}')
|
await interaction.response.send_message(f'Banned {member}')
|
||||||
|
|
||||||
Parameters
|
Parameters
|
||||||
@ -2120,7 +2120,7 @@ def describe(**parameters: Union[str, locale_str]) -> Callable[[T], T]:
|
|||||||
--------
|
--------
|
||||||
TypeError
|
TypeError
|
||||||
The parameter name is not found.
|
The parameter name is not found.
|
||||||
"""
|
'''
|
||||||
|
|
||||||
def decorator(inner: T) -> T:
|
def decorator(inner: T) -> T:
|
||||||
if isinstance(inner, Command):
|
if isinstance(inner, Command):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user