Kill remaining references to discord.Channel in documentation.

This commit is contained in:
Rapptz 2017-05-19 21:57:25 -04:00
parent 8a49a3a74f
commit 3727618b65
4 changed files with 7 additions and 7 deletions

View File

@ -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.
"""

View File

@ -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.
"""

View File

@ -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

View File

@ -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