Skip to content

Commit

Permalink
Improve __repr__ for Webhook and SyncWebhook
Browse files Browse the repository at this point in the history
  • Loading branch information
owocado committed Mar 22, 2024
1 parent 2f71506 commit 425edd2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion discord/webhook/async_.py
Expand Up @@ -1155,7 +1155,7 @@ def __init__(
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:
Expand Down
2 changes: 1 addition & 1 deletion discord/webhook/sync.py
Expand Up @@ -608,7 +608,7 @@ def __init__(
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:
Expand Down

0 comments on commit 425edd2

Please sign in to comment.