Browse Source

Fix attribute error in Widget.__repr__

pull/2083/head
Rapptz 6 years ago
parent
commit
e3631ade4c
  1. 2
      discord/widget.py

2
discord/widget.py

@ -208,7 +208,7 @@ class Widget:
return self.id == other.id return self.id == other.id
def __repr__(self): def __repr__(self):
return '<Widget id={0.id} name={0.name!r} invite={0.invite!r}>'.format(self) return '<Widget id={0.id} name={0.name!r} invite_url={0.invite_url!r}>'.format(self)
@property @property
def created_at(self): def created_at(self):

Loading…
Cancel
Save