aboutsummaryrefslogtreecommitdiff
path: root/discord
diff options
context:
space:
mode:
authorRapptz <[email protected]>2016-01-08 14:03:11 -0500
committerRapptz <[email protected]>2016-01-08 14:04:58 -0500
commita1a47c6f38b46fe2d75276cff037048ee9acfdc4 (patch)
tree8460f50631d97e0cc6c714c20ee1305542238c57 /discord
parentDocument how Client.run should be the last function to call. (diff)
downloaddiscord.py-a1a47c6f38b46fe2d75276cff037048ee9acfdc4.tar.xz
discord.py-a1a47c6f38b46fe2d75276cff037048ee9acfdc4.zip
Document the breaking change with the new dictionary storage change.
Since the only things dict views support are iteration we should advise people who want the old behaviour to change it to a list.
Diffstat (limited to 'discord')
-rw-r--r--discord/client.py4
-rw-r--r--discord/server.py4
2 files changed, 4 insertions, 4 deletions
diff --git a/discord/client.py b/discord/client.py
index 4c06dcbf..77b71466 100644
--- a/discord/client.py
+++ b/discord/client.py
@@ -88,9 +88,9 @@ class Client:
Represents the current voice connection. None if you are not connected
to a voice channel. To connect to voice use :meth:`join_voice_channel`.
To query the voice connection state use :meth:`is_voice_connected`.
- servers : list of :class:`Server`
+ servers : iterable of :class:`Server`
The servers that the connected client is a member of.
- private_channels : list of :class:`PrivateChannel`
+ private_channels : iterable of :class:`PrivateChannel`
The private channels that the connected client is participating on.
messages
A deque_ of :class:`Message` that the client has received from all
diff --git a/discord/server.py b/discord/server.py
index 66ae3cd6..2d2afe6b 100644
--- a/discord/server.py
+++ b/discord/server.py
@@ -67,9 +67,9 @@ class Server(Hashable):
afk_channel : :class:`Channel`
The channel that denotes the AFK channel. None if it doesn't exist.
members
- A list of :class:`Member` that are currently on the server.
+ An iterable of :class:`Member` that are currently on the server.
channels
- A list of :class:`Channel` that are currently on the server.
+ An iterable of :class:`Channel` that are currently on the server.
icon : str
The server's icon.
id : str