Browse Source

Add AppInfo.role_connections_verification_url

pull/9171/head
Rapptz 2 years ago
parent
commit
9930c672bb
  1. 7
      discord/appinfo.py
  2. 1
      discord/types/appinfo.py

7
discord/appinfo.py

@ -126,6 +126,11 @@ class AppInfo:
The settings for custom authorization URL of application, if enabled.
.. versionadded:: 2.0
role_connections_verification_url: Optional[:class:`str`]
The application's connection verification URL which will render the application as
a verification method in the guild's role verification configuration.
.. versionadded:: 2.2
"""
__slots__ = (
@ -150,6 +155,7 @@ class AppInfo:
'tags',
'custom_install_url',
'install_params',
'role_connections_verification_url',
)
def __init__(self, state: ConnectionState, data: AppInfoPayload):
@ -180,6 +186,7 @@ class AppInfo:
self.privacy_policy_url: Optional[str] = data.get('privacy_policy_url')
self.tags: List[str] = data.get('tags', [])
self.custom_install_url: Optional[str] = data.get('custom_install_url')
self.role_connections_verification_url: Optional[str] = data.get('role_connections_verification_url')
params = data.get('install_params')
self.install_params: Optional[AppInstallParams] = AppInstallParams(params) if params else None

1
discord/types/appinfo.py

@ -62,6 +62,7 @@ class AppInfo(BaseAppInfo):
tags: NotRequired[List[str]]
install_params: NotRequired[InstallParams]
custom_install_url: NotRequired[str]
role_connections_verification_url: NotRequired[str]
class PartialAppInfo(BaseAppInfo, total=False):

Loading…
Cancel
Save