Server.me is now a dynamic property to avoid outdated references.

This commit is contained in:
Rapptz 2016-03-01 22:54:28 -05:00
parent bf2b8744a5
commit 3802e7f534

View File

@ -124,7 +124,7 @@ class ConnectionState:
def _add_server_from_data(self, guild):
server = Server(**guild)
server.me = server.get_member(self.user.id)
Server.me = property(lambda s: s.get_member(self.user.id))
self._add_server(server)
return server