diff options
| author | Rapptz <[email protected]> | 2017-09-04 20:03:50 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2017-09-04 20:03:50 -0400 |
| commit | 21fd94a449d8ec9e4d359fc132149f314b36126b (patch) | |
| tree | 0c4ef6e45151ebfc0e8e17ce206789bea3b07d1d | |
| parent | Fix __hash__ for Invite objects. (diff) | |
| download | discord.py-21fd94a449d8ec9e4d359fc132149f314b36126b.tar.xz discord.py-21fd94a449d8ec9e4d359fc132149f314b36126b.zip | |
Attempt to change how member functions are detected for Member objects
| -rw-r--r-- | discord/member.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/member.py b/discord/member.py index 50da6a82..711bc76e 100644 --- a/discord/member.py +++ b/discord/member.py @@ -88,7 +88,7 @@ def flatten_user(cls): # if it's a slotted attribute or a property, redirect it # slotted members are implemented as member_descriptors in Type.__dict__ - if hasattr(value, '__get__'): + if not hasattr(value, '__annotations__'): def getter(self, x=attr): return getattr(self._user, x) setattr(cls, attr, property(getter, doc='Equivalent to :attr:`User.%s`' % attr)) |