mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-19 15:36:02 +00:00
Attempt to change how member functions are detected for Member objects
This commit is contained in:
parent
dcde896e14
commit
21fd94a449
@ -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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user