mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-06 09:56:09 +00:00
Fix permissions-based docstrings to be more consistent
This commit is contained in:
@ -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
|
||||
---------
|
||||
|
Reference in New Issue
Block a user