From f12cdd5f90f08cf8cc268edc33e0a4a94e24c81b Mon Sep 17 00:00:00 2001 From: Bluesy <68259537+Bluesy1@users.noreply.github.com> Date: Tue, 16 Aug 2022 16:11:55 -0700 Subject: [PATCH] Switch quotes to make docs example render properly --- discord/app_commands/commands.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/discord/app_commands/commands.py b/discord/app_commands/commands.py index 06de4d49f..3d5544564 100644 --- a/discord/app_commands/commands.py +++ b/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):