aboutsummaryrefslogtreecommitdiff
path: root/discord/channel.py
diff options
context:
space:
mode:
authorSteve C <[email protected]>2018-05-10 03:34:13 -0400
committerRapptz <[email protected]>2018-05-18 20:25:54 -0400
commit0e945915b766991c5008077575def82a72e0d7ff (patch)
tree36d856afa258a8941720b7d7f33618462592d06d /discord/channel.py
parentabc.GuildChannel.set_permissions can raise NotFound. (diff)
downloaddiscord.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/channel.py')
-rw-r--r--discord/channel.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/discord/channel.py b/discord/channel.py
index 3fd867a4..ac5f3383 100644
--- a/discord/channel.py
+++ b/discord/channel.py
@@ -130,7 +130,7 @@ class TextChannel(discord.abc.Messageable, discord.abc.GuildChannel, Hashable):
Edits the channel.
- You must have the :attr:`Permissions.manage_channel` permission to
+ You must have the :attr:`~Permissions.manage_channels` permission to
use this.
Parameters
@@ -177,8 +177,8 @@ class TextChannel(discord.abc.Messageable, discord.abc.GuildChannel, Hashable):
You cannot bulk delete more than 100 messages or messages that
are older than 14 days old.
- You must have :attr:`Permissions.manage_messages` permission to use
- this.
+ You must have the :attr:`~Permissions.manage_messages` permission to
+ use this.
Usable only by bot accounts.
@@ -222,10 +222,10 @@ class TextChannel(discord.abc.Messageable, discord.abc.GuildChannel, Hashable):
``check``. If a ``check`` is not provided then all messages are deleted
without discrimination.
- You must have :attr:`Permissions.manage_messages` permission to delete
- messages even if they are your own (unless you are a user account).
- The :attr:`Permissions.read_message_history` permission is also needed
- to retrieve message history.
+ You must have the :attr:`~Permissions.manage_messages` permission to
+ delete messages even if they are your own (unless you are a user
+ account). The :attr:`~Permissions.read_message_history` permission is
+ also needed to retrieve message history.
Internally, this employs a different number of strategies depending
on the conditions met such as if a bulk delete is possible or if
@@ -467,7 +467,7 @@ class VoiceChannel(discord.abc.Connectable, discord.abc.GuildChannel, Hashable):
Edits the channel.
- You must have the :attr:`Permissions.manage_channel` permission to
+ You must have the :attr:`~Permissions.manage_channels` permission to
use this.
Parameters
@@ -564,7 +564,7 @@ class CategoryChannel(discord.abc.GuildChannel, Hashable):
Edits the channel.
- You must have the :attr:`Permissions.manage_channel` permission to
+ You must have the :attr:`~Permissions.manage_channels` permission to
use this.
Parameters