aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRapptz <[email protected]>2016-01-21 07:00:39 -0500
committerRapptz <[email protected]>2016-01-21 07:00:39 -0500
commit654001ba3ec272780243a13e1770781664c61fba (patch)
tree54a7cf6aacfd51f00bd6549fbb9952924902088e
parentChange docstring for Client.send_message to point to a valid property. (diff)
downloaddiscord.py-654001ba3ec272780243a13e1770781664c61fba.tar.xz
discord.py-654001ba3ec272780243a13e1770781664c61fba.zip
Update the unavailable guild's data when it becomes available.
-rw-r--r--discord/state.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/discord/state.py b/discord/state.py
index cd77171d..684675d5 100644
--- a/discord/state.py
+++ b/discord/state.py
@@ -235,6 +235,7 @@ class ConnectionState:
server = self._get_server(data.get('id'))
if server is not None:
server.unavailable = False
+ server._from_data(data)
self.dispatch('server_available', server)
return
@@ -242,9 +243,9 @@ class ConnectionState:
# joined a server with unavailable == True so..
return
- # if we're at this point then it was probably
- # unavailable during the READY event and is now
- # available, so it isn't in the cache...
+ # if we're at this point then it was probably
+ # unavailable during the READY event and is now
+ # available, so it isn't in the cache...
server = self._add_server_from_data(data)
self.dispatch('server_join', server)