mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-06-07 12:18:59 +00:00
Add AppInfo.role_connections_verification_url
This commit is contained in:
parent
d8da6a8da1
commit
9930c672bb
@ -126,6 +126,11 @@ class AppInfo:
|
|||||||
The settings for custom authorization URL of application, if enabled.
|
The settings for custom authorization URL of application, if enabled.
|
||||||
|
|
||||||
.. versionadded:: 2.0
|
.. 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__ = (
|
__slots__ = (
|
||||||
@ -150,6 +155,7 @@ class AppInfo:
|
|||||||
'tags',
|
'tags',
|
||||||
'custom_install_url',
|
'custom_install_url',
|
||||||
'install_params',
|
'install_params',
|
||||||
|
'role_connections_verification_url',
|
||||||
)
|
)
|
||||||
|
|
||||||
def __init__(self, state: ConnectionState, data: AppInfoPayload):
|
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.privacy_policy_url: Optional[str] = data.get('privacy_policy_url')
|
||||||
self.tags: List[str] = data.get('tags', [])
|
self.tags: List[str] = data.get('tags', [])
|
||||||
self.custom_install_url: Optional[str] = data.get('custom_install_url')
|
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')
|
params = data.get('install_params')
|
||||||
self.install_params: Optional[AppInstallParams] = AppInstallParams(params) if params else None
|
self.install_params: Optional[AppInstallParams] = AppInstallParams(params) if params else None
|
||||||
|
@ -62,6 +62,7 @@ class AppInfo(BaseAppInfo):
|
|||||||
tags: NotRequired[List[str]]
|
tags: NotRequired[List[str]]
|
||||||
install_params: NotRequired[InstallParams]
|
install_params: NotRequired[InstallParams]
|
||||||
custom_install_url: NotRequired[str]
|
custom_install_url: NotRequired[str]
|
||||||
|
role_connections_verification_url: NotRequired[str]
|
||||||
|
|
||||||
|
|
||||||
class PartialAppInfo(BaseAppInfo, total=False):
|
class PartialAppInfo(BaseAppInfo, total=False):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user