mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-06-07 12:18:59 +00:00
Add approximate_guild_count to AppInfo
This commit is contained in:
parent
ef64f76eae
commit
692db7e9ab
@ -142,6 +142,10 @@ class AppInfo:
|
||||
redirect_uris: List[:class:`str`]
|
||||
A list of authentication redirect URIs.
|
||||
|
||||
.. versionadded:: 2.4
|
||||
approximate_guild_count: :class:`int`
|
||||
The approximate count of the guilds the bot was added to.
|
||||
|
||||
.. versionadded:: 2.4
|
||||
"""
|
||||
|
||||
@ -170,6 +174,7 @@ class AppInfo:
|
||||
'role_connections_verification_url',
|
||||
'interactions_endpoint_url',
|
||||
'redirect_uris',
|
||||
'approximate_guild_count',
|
||||
)
|
||||
|
||||
def __init__(self, state: ConnectionState, data: AppInfoPayload):
|
||||
@ -206,6 +211,7 @@ class AppInfo:
|
||||
self.install_params: Optional[AppInstallParams] = AppInstallParams(params) if params else None
|
||||
self.interactions_endpoint_url: Optional[str] = data.get('interactions_endpoint_url')
|
||||
self.redirect_uris: List[str] = data.get('redirect_uris', [])
|
||||
self.approximate_guild_count: int = data.get('approximate_guild_count', 0)
|
||||
|
||||
def __repr__(self) -> str:
|
||||
return (
|
||||
|
Loading…
x
Reference in New Issue
Block a user