aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRapptz <[email protected]>2017-05-19 21:57:25 -0400
committerRapptz <[email protected]>2017-05-19 21:58:02 -0400
commit3727618b6547981e66d022c04516cf43488ab1f8 (patch)
tree74e4cb9388cd31791998cecd2ffed96bc1c6a0ea
parentUpdate migrating page with new extension information. (diff)
downloaddiscord.py-3727618b6547981e66d022c04516cf43488ab1f8.tar.xz
discord.py-3727618b6547981e66d022c04516cf43488ab1f8.zip
Kill remaining references to discord.Channel in documentation.
-rw-r--r--discord/client.py6
-rw-r--r--discord/invite.py4
-rw-r--r--discord/message.py2
-rw-r--r--docs/api.rst2
4 files changed, 7 insertions, 7 deletions
diff --git a/discord/client.py b/discord/client.py
index 6ad1ec93..021be0a8 100644
--- a/discord/client.py
+++ b/discord/client.py
@@ -538,7 +538,7 @@ class Client:
return self._connection.get_emoji(id)
def get_all_channels(self):
- """A generator that retrieves every :class:`Channel` the client can 'access'.
+ """A generator that retrieves every :class:`abc.GuildChannel` the client can 'access'.
This is equivalent to: ::
@@ -548,8 +548,8 @@ class Client:
Note
-----
- Just because you receive a :class:`Channel` does not mean that
- you can communicate in said channel. :meth:`Channel.permissions_for` should
+ Just because you receive a :class:`abc.GuildChannel` does not mean that
+ you can communicate in said channel. :meth:`abc.GuildChannel.permissions_for` should
be used for that.
"""
diff --git a/discord/invite.py b/discord/invite.py
index 2139500c..a630b3fb 100644
--- a/discord/invite.py
+++ b/discord/invite.py
@@ -31,7 +31,7 @@ from .mixins import Hashable
from .object import Object
class Invite(Hashable):
- """Represents a Discord :class:`Guild` or :class:`Channel` invite.
+ """Represents a Discord :class:`Guild` or :class:`abc.GuildChannel` invite.
Depending on the way this object was created, some of the attributes can
have a value of ``None``.
@@ -73,7 +73,7 @@ class Invite(Hashable):
How many times the invite can be used.
inviter: :class:`User`
The user who created the invite.
- channel: :class:`Channel`
+ channel: :class:`abc.GuildChannel`
The channel the invite is for.
"""
diff --git a/discord/message.py b/discord/message.py
index 436e277d..314c1b11 100644
--- a/discord/message.py
+++ b/discord/message.py
@@ -84,7 +84,7 @@ class Message:
not rely on it. This is a discord limitation, not one with the library.
channel_mentions: list
- A list of :class:`Channel` that were mentioned. If the message is in a private message
+ A list of :class:`abc.GuildChannel` that were mentioned. If the message is in a private message
then the list is always empty.
role_mentions: list
A list of :class:`Role` that were mentioned. If the message is in a private message
diff --git a/docs/api.rst b/docs/api.rst
index 55dbaa5f..eaa8372b 100644
--- a/docs/api.rst
+++ b/docs/api.rst
@@ -563,7 +563,7 @@ All enumerations are subclasses of `enum`_.
.. class:: ChannelType
- Specifies the type of :class:`Channel`.
+ Specifies the type of channel.
.. attribute:: text