diff options
| author | Steve C <[email protected]> | 2018-05-10 03:34:13 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2018-05-18 20:25:54 -0400 |
| commit | 0e945915b766991c5008077575def82a72e0d7ff (patch) | |
| tree | 36d856afa258a8941720b7d7f33618462592d06d /discord/abc.py | |
| parent | abc.GuildChannel.set_permissions can raise NotFound. (diff) | |
| download | discord.py-0e945915b766991c5008077575def82a72e0d7ff.tar.xz discord.py-0e945915b766991c5008077575def82a72e0d7ff.zip | |
Fixes various documentation errors/inconsistencies
Mostly dealing with permissions, also fixes Raw Events inclusion.
Diffstat (limited to 'discord/abc.py')
| -rw-r--r-- | discord/abc.py | 11 |
1 files changed, 7 insertions, 4 deletions
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. |