Change and add params in AppInfo and PartialAppInfo

This commit is contained in:
Andrin S
2023-03-30 14:37:34 +02:00
committed by GitHub
parent 2ddb9d22ba
commit 4828355f9e
3 changed files with 50 additions and 11 deletions

View File

@ -2486,8 +2486,6 @@ class Client:
The bot's application information.
"""
data = await self.http.application_info()
if 'rpc_origins' not in data:
data['rpc_origins'] = None
return AppInfo(self._connection, data)
async def fetch_user(self, user_id: int, /) -> User: