aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRapptz <[email protected]>2015-10-22 22:12:53 -0400
committerRapptz <[email protected]>2015-10-22 22:20:36 -0400
commitf018895f2cb33e26b244a47831ef2caa77058a8a (patch)
tree4917061c5b72a3e89c94cf52022927a7f8420782
parentChange default parameter to None for Client.set_channel_permissions (diff)
downloaddiscord.py-f018895f2cb33e26b244a47831ef2caa77058a8a.tar.xz
discord.py-f018895f2cb33e26b244a47831ef2caa77058a8a.zip
Fix documentation warnings.
-rw-r--r--discord/client.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/discord/client.py b/discord/client.py
index 83cad29f..ddf8385f 100644
--- a/discord/client.py
+++ b/discord/client.py
@@ -1095,14 +1095,14 @@ class Client(object):
return is_response_successful(response)
def add_roles(self, member, *roles):
- """Gives the specified :class:`Member` a number of :class:`Role`s.
+ """Gives the specified :class:`Member` a number of :class:`Role` s.
You must have the proper permissions to use this function.
This method **appends** a role to a member.
:param member: The :class:`Member` to give roles to.
- :param roles: An iterable of :class:`Role`s to give the member.
+ :param roles: An iterable of :class:`Role` s to give the member.
:return: ``True`` if the operation was successful, ``False`` otherwise.
"""
@@ -1121,12 +1121,12 @@ class Client(object):
return False
def remove_roles(self, member, *roles):
- """Removes the :class:`Role`s from the :class:`Member`.
+ """Removes the :class:`Role` s from the :class:`Member`.
You must have the proper permissions to use this function.
:param member: The :class:`Member` to remove roles from.
- :param roles: An iterable of :class:`Role`s to remove from the member.
+ :param roles: An iterable of :class:`Role` s to remove from the member.
:return: ``True`` if the operation was successful, ``False`` otherwise.
"""
@@ -1160,11 +1160,11 @@ class Client(object):
This function **replaces** all roles that the member has.
For example if the member has roles ``[a, b, c]`` and the
- call is ``client.replace_roles(member, d, e, c)` then
+ call is ``client.replace_roles(member, d, e, c)`` then
the member has the roles ``[d, e, c]``.
:param member: The :class:`Member` to replace roles for.
- :param roles: An iterable of :class:`Role`s to replace with.
+ :param roles: An iterable of :class:`Role` s to replace with.
:return: ``True`` if the operation was successful, ``False`` otherwise.
"""