Skip to content

Commit eb559cc

Browse files
committed
fix: Fix a TypeError in InstallParams
1 parent 63c0492 commit eb559cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

discord/appinfo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ def __init__(self, *, state: ConnectionState, data: AppInfoPayload):
169169
self.custom_install_url: Optional[str] = data.get('custom_install_url', None)
170170
install_params = data.get('install_params', None)
171171

172-
self.install_params: Optional[InstallParams] = InstallParams(install_params) if install_params else None
172+
self.install_params: Optional[InstallParams] = InstallParams(install_params['scopes'], install_params['permissions']) if install_params else None
173173

174174
self.tags: List[str] = data.get('tags', [])
175175
self._flags: int = data.get('flags', 0)

0 commit comments

Comments
 (0)