Browse Source

Improve __repr__ for Webhook and SyncWebhook

pull/10109/head
owocado 1 year ago
committed by dolfies
parent
commit
ccb89639db
  1. 2
      discord/webhook/async_.py
  2. 2
      discord/webhook/sync.py

2
discord/webhook/async_.py

@ -940,7 +940,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:

2
discord/webhook/sync.py

@ -607,7 +607,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…
Cancel
Save