@@ -183,6 +183,11 @@ class AppInfo:
183183 flags: Optional[:class:`ApplicationFlags`]
184184 The public application flags, if set.
185185
186+ .. versionadded:: 2.7
187+
188+ bot: Optional[:class:`User`]
189+ The bot user associated with this application, if any.
190+
186191 .. versionadded:: 2.7
187192 """
188193
@@ -234,7 +239,9 @@ def __init__(self, state: ConnectionState, data: AppInfoPayload):
234239 self .bot_public : bool = data .get ("bot_public" , False )
235240 self .bot_require_code_grant : bool = data .get ("bot_require_code_grant" , False )
236241 owner_data = data .get ("owner" )
237- self .owner : User | None = state .create_user (owner_data ) if owner_data is not None else None
242+ self .owner : User | None = (
243+ state .create_user (owner_data ) if owner_data is not None else None
244+ )
238245
239246 team : TeamPayload | None = data .get ("team" )
240247 self .team : Team | None = Team (state , team ) if team else None
@@ -596,7 +603,9 @@ def __init__(
596603 self .guild = guild
597604 self .user = user
598605
599- def _encode_install_params (self , value : AppInstallParams | None ) -> dict [str , object ] | None :
606+ def _encode_install_params (
607+ self , value : AppInstallParams | None
608+ ) -> dict [str , object ] | None :
600609 if value is None :
601610 return None
602611 return {"oauth2_install_params" : value .to_payload ()}
0 commit comments