Browse Source

Fix broken code blocks in docstrings

pull/7835/head
Puncher 3 years ago
committed by GitHub
parent
commit
18050aecd7
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      discord/channel.py
  2. 2
      discord/client.py

2
discord/channel.py

@ -780,7 +780,7 @@ class TextChannel(discord.abc.Messageable, discord.abc.GuildChannel, Hashable):
HTTPException HTTPException
The request to get the archived threads failed. The request to get the archived threads failed.
ValueError ValueError
`joined`` was set to ``True`` and ``private`` was set to ``False``. You cannot retrieve public archived ``joined`` was set to ``True`` and ``private`` was set to ``False``. You cannot retrieve public archived
threads that you have joined. threads that you have joined.
Yields Yields

2
discord/client.py

@ -1387,7 +1387,7 @@ class Client:
Bot accounts in more than 10 guilds are not allowed to create guilds. Bot accounts in more than 10 guilds are not allowed to create guilds.
.. versionchanged:: 2.0 .. versionchanged:: 2.0
``name`` and ``icon`` parameters are now keyword-only. The `region`` parameter has been removed. ``name`` and ``icon`` parameters are now keyword-only. The ``region`` parameter has been removed.
.. versionchanged:: 2.0 .. versionchanged:: 2.0
This function will now raise :exc:`ValueError` instead of This function will now raise :exc:`ValueError` instead of

Loading…
Cancel
Save