Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/Rapptz/discord.py into v2…
Browse files Browse the repository at this point in the history
…-martine
  • Loading branch information
PredaaA committed Apr 9, 2024
2 parents a77dbd9 + 425edd2 commit ce4dc49
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions discord/permissions.py
Original file line number Diff line number Diff line change
Expand Up @@ -682,6 +682,14 @@ def moderate_members(self) -> int:
"""
return 1 << 40

@flag_value
def view_creator_monetization_analytics(self) -> int:
""":class:`bool`: Returns ``True`` if a user can view role subscription insights.
.. versionadded:: 2.4
"""
return 1 << 41

@flag_value
def use_soundboard(self) -> int:
""":class:`bool`: Returns ``True`` if a user can use the soundboard.
Expand Down
2 changes: 1 addition & 1 deletion discord/webhook/async_.py
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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 ce4dc49

Please sign in to comment.