Fix permissions-based docstrings to be more consistent

This commit is contained in:
Steve C
2022-09-17 14:07:39 -04:00
committed by GitHub
parent a53b609e37
commit ce06beeb6c
19 changed files with 104 additions and 155 deletions

View File

@ -790,7 +790,7 @@ class GuildChannel:
Deletes the channel.
You must have :attr:`~discord.Permissions.manage_channels` permission to use this.
You must have :attr:`~discord.Permissions.manage_channels` to do this.
Parameters
-----------
@ -854,7 +854,7 @@ class GuildChannel:
If the ``overwrite`` parameter is ``None``, then the permission
overwrites are deleted.
You must have the :attr:`~discord.Permissions.manage_roles` permission to use this.
You must have :attr:`~discord.Permissions.manage_roles` to do this.
.. note::
@ -970,8 +970,7 @@ class GuildChannel:
Clones this channel. This creates a channel with the same properties
as this channel.
You must have the :attr:`~discord.Permissions.manage_channels` permission to
do this.
You must have :attr:`~discord.Permissions.manage_channels` to do this.
.. versionadded:: 1.1
@ -1052,8 +1051,7 @@ class GuildChannel:
If exact position movement is required, ``edit`` should be used instead.
You must have the :attr:`~discord.Permissions.manage_channels` permission to
do this.
You must have :attr:`~discord.Permissions.manage_channels` to do this.
.. note::
@ -1190,8 +1188,7 @@ class GuildChannel:
Creates an instant invite from a text or voice channel.
You must have the :attr:`~discord.Permissions.create_instant_invite` permission to
do this.
You must have :attr:`~discord.Permissions.create_instant_invite` to do this.
Parameters
------------
@ -1644,7 +1641,7 @@ class Messageable:
) -> AsyncIterator[Message]:
"""Returns an :term:`asynchronous iterator` that enables receiving the destination's message history.
You must have :attr:`~discord.Permissions.read_message_history` permissions to use this.
You must have :attr:`~discord.Permissions.read_message_history` to do this.
Examples
---------