@@ -845,15 +845,17 @@ async def defer(self, *, ephemeral: bool = False, invisible: bool = True) -> Non
845
845
if defer_type :
846
846
adapter = async_context .get ()
847
847
http = parent ._state .http
848
- callback_response : InteractionCallbackResponse = await self ._locked_response (
849
- adapter .create_interaction_response (
850
- parent .id ,
851
- parent .token ,
852
- session = parent ._session ,
853
- type = defer_type ,
854
- data = data ,
855
- proxy = http .proxy ,
856
- proxy_auth = http .proxy_auth ,
848
+ callback_response : InteractionCallbackResponse = (
849
+ await self ._locked_response (
850
+ adapter .create_interaction_response (
851
+ parent .id ,
852
+ parent .token ,
853
+ session = parent ._session ,
854
+ type = defer_type ,
855
+ data = data ,
856
+ proxy = http .proxy ,
857
+ proxy_auth = http .proxy_auth ,
858
+ )
857
859
)
858
860
)
859
861
self ._responded = True
@@ -880,14 +882,16 @@ async def pong(self) -> None:
880
882
if parent .type is InteractionType .ping :
881
883
adapter = async_context .get ()
882
884
http = parent ._state .http
883
- callback_response : InteractionCallbackResponse = await self ._locked_response (
884
- adapter .create_interaction_response (
885
- parent .id ,
886
- parent .token ,
887
- session = parent ._session ,
888
- proxy = http .proxy ,
889
- proxy_auth = http .proxy_auth ,
890
- type = InteractionResponseType .pong .value ,
885
+ callback_response : InteractionCallbackResponse = (
886
+ await self ._locked_response (
887
+ adapter .create_interaction_response (
888
+ parent .id ,
889
+ parent .token ,
890
+ session = parent ._session ,
891
+ proxy = http .proxy ,
892
+ proxy_auth = http .proxy_auth ,
893
+ type = InteractionResponseType .pong .value ,
894
+ )
891
895
)
892
896
)
893
897
self ._responded = True
0 commit comments