Reimplement Guild.me property without patching it in.

This commit is contained in:
Rapptz committed 2017-01-18 19:54:47 -05:00
1 parent f4cadaf0cc
commit f465f88d81
2 files changed
+8 -8

No files matched your search

-2
View File
@@ -188,8 +188,6 @@ class ConnectionState:
def _add_guild_from_data(self, guild):
guild = Guild(data=guild, state=self)
Guild.me = property(lambda s: s.get_member(self.user.id))
Guild.voice_client = property(lambda s: self._get_voice_client(s.id))
self._add_guild(guild)
return guild