From 0e945915b766991c5008077575def82a72e0d7ff Mon Sep 17 00:00:00 2001 From: Steve C Date: Thu, 10 May 2018 03:34:13 -0400 Subject: Fixes various documentation errors/inconsistencies Mostly dealing with permissions, also fixes Raw Events inclusion. --- discord/abc.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'discord/abc.py') diff --git a/discord/abc.py b/discord/abc.py index c5b917ec..3f88491c 100644 --- a/discord/abc.py +++ b/discord/abc.py @@ -472,7 +472,7 @@ class GuildChannel: Deletes the channel. - You must have Manage Channel permission to use this. + You must have :attr:`~.Permissions.manage_channels` permission to use this. Parameters ----------- @@ -510,7 +510,7 @@ class GuildChannel: If the ``overwrite`` parameter is ``None``, then the permission overwrites are deleted. - You must have :attr:`Permissions.manage_roles` permission to use this. + You must have the :attr:`~Permissions.manage_roles` permission to use this. Examples ---------- @@ -592,6 +592,9 @@ class GuildChannel: Creates an instant invite. + You must have :attr:`~.Permissions.create_instant_invite` permission to + do this. + Parameters ------------ max_age : int @@ -630,7 +633,7 @@ class GuildChannel: Returns a list of all active instant invites from this channel. - You must have proper permissions to get this information. + You must have :attr:`~.Permissions.manage_guild` to get this information. Raises ------- @@ -860,7 +863,7 @@ class Messageable(metaclass=abc.ABCMeta): def history(self, *, limit=100, before=None, after=None, around=None, reverse=None): """Return an :class:`AsyncIterator` that enables receiving the destination's message history. - You must have :attr:`~Permissions.read_message_history` permissions to use this. + You must have :attr:`~.Permissions.read_message_history` permissions to use this. All parameters are optional. -- cgit v1.2.3