mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-19 15:36:02 +00:00
Improve __repr__ for Webhook and SyncWebhook
This commit is contained in:
parent
2f71506169
commit
425edd2e10
@ -1155,7 +1155,7 @@ class Webhook(BaseWebhook):
|
||||
self.proxy_auth: Optional[aiohttp.BasicAuth] = proxy_auth
|
||||
|
||||
def __repr__(self) -> str:
|
||||
return f'<Webhook id={self.id!r}>'
|
||||
return f'<Webhook id={self.id!r} type={self.type!r} name={self.name!r}>'
|
||||
|
||||
@property
|
||||
def url(self) -> str:
|
||||
|
@ -608,7 +608,7 @@ class SyncWebhook(BaseWebhook):
|
||||
self.session: Session = session
|
||||
|
||||
def __repr__(self) -> str:
|
||||
return f'<Webhook id={self.id!r}>'
|
||||
return f'<Webhook id={self.id!r} type={self.type!r} name={self.name!r}>'
|
||||
|
||||
@property
|
||||
def url(self) -> str:
|
||||
|
Loading…
x
Reference in New Issue
Block a user