From a0c1d6f6c5bdc44c144a650dfdeea85ee59f627a Mon Sep 17 00:00:00 2001 From: Sebastian Law <44045823+SebbyLaw@users.noreply.github.com> Date: Sun, 21 Feb 2021 04:32:11 -0800 Subject: [PATCH] Fix backslashes showing up in the docs --- discord/utils.py | 4 ++-- docs/api.rst | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/discord/utils.py b/discord/utils.py index 775907ff6..5c8e4960e 100644 --- a/discord/utils.py +++ b/discord/utils.py @@ -492,8 +492,8 @@ def escape_markdown(text, *, as_needed=False, ignore_links=True): as_needed: :class:`bool` Whether to escape the markdown characters as needed. This means that it does not escape extraneous characters if it's - not necessary, e.g. ``**hello**`` is escaped into ``\*\*hello**`` - instead of ``\*\*hello\*\*``. Note however that this can open + not necessary, e.g. ``**hello**`` is escaped into ``**hello**`` + instead of ``**hello**``. Note however that this can open you up to some clever syntax abuse. Defaults to ``False``. ignore_links: :class:`bool` Whether to leave links alone when escaping markdown. For example, diff --git a/docs/api.rst b/docs/api.rst index 9146b3186..dc016fba4 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -250,7 +250,7 @@ to handle it, which defaults to print a traceback and ignoring the exception. :param shard_id: The shard ID that has resumed. :type shard_id: :class:`int` -.. function:: on_error(event, \*args, \*\*kwargs) +.. function:: on_error(event, *args, **kwargs) Usually when an event raises an uncaught exception, a traceback is printed to stderr and the exception is ignored. If you want to