aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--discord/client.py6
-rw-r--r--discord/utils.py2
-rw-r--r--docs/api.rst5
-rw-r--r--docs/migrating.rst2
4 files changed, 8 insertions, 7 deletions
diff --git a/discord/client.py b/discord/client.py
index 45a69fea..dcec1ae2 100644
--- a/discord/client.py
+++ b/discord/client.py
@@ -2069,7 +2069,7 @@ class Client:
-----------
member : :class:`Member`
The member to give roles to.
- *roles
+ \*roles
An argument list of :class:`Role` s to give the member.
Raises
@@ -2097,7 +2097,7 @@ class Client:
-----------
member : :class:`Member`
The member to revoke roles from.
- *roles
+ \*roles
An argument list of :class:`Role` s to revoke the member.
Raises
@@ -2137,7 +2137,7 @@ class Client:
-----------
member : :class:`Member`
The member to replace roles from.
- *roles
+ \*roles
An argument list of :class:`Role` s to replace the roles with.
Raises
diff --git a/discord/utils.py b/discord/utils.py
index 5318b631..6ad98882 100644
--- a/discord/utils.py
+++ b/discord/utils.py
@@ -141,7 +141,7 @@ def get(iterable, **attrs):
-----------
iterable
An iterable to search through.
- **attrs
+ \*\*attrs
Keyword arguments that denote attributes to search with.
"""
diff --git a/docs/api.rst b/docs/api.rst
index b022f298..17c0f7ed 100644
--- a/docs/api.rst
+++ b/docs/api.rst
@@ -442,12 +442,13 @@ Some classes are just there to be data containers, this lists them.
.. warning::
- Nearly all data classes here have `__slots__` defined which means that it is
+ Nearly all data classes here have ``__slots__`` defined which means that it is
impossible to have dynamic attributes to the data classes. The only exception
to this rule is :class:`Object` which was designed with dynamic attributes in
mind.
- More information about `__slots__` can be found `in the official python documentation <https://docs.python.org/3/reference/datamodel.html#slots>`.
+ More information about ``__slots__`` can be found
+ `in the official python documentation <https://docs.python.org/3/reference/datamodel.html#slots>`_.
Object
~~~~~~~
diff --git a/docs/migrating.rst b/docs/migrating.rst
index cd973e9f..caf15d67 100644
--- a/docs/migrating.rst
+++ b/docs/migrating.rst
@@ -237,7 +237,7 @@ The following parameters are now exclusively keyword arguments:
- ``allow``
- ``deny``
-In the documentation you can tell if a function parameter is a forced keyword argument if it is after ``*, ``
+In the documentation you can tell if a function parameter is a forced keyword argument if it is after ``\*,``
in the function signature.
.. _migrating-running: