Skip to content

Commit 405cb74

Browse files
style(pre-commit): auto fixes from pre-commit.com hooks
1 parent 296436b commit 405cb74

File tree

1 file changed

+21
-17
lines changed

1 file changed

+21
-17
lines changed

discord/interactions.py

Lines changed: 21 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -845,15 +845,17 @@ async def defer(self, *, ephemeral: bool = False, invisible: bool = True) -> Non
845845
if defer_type:
846846
adapter = async_context.get()
847847
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+
)
857859
)
858860
)
859861
self._responded = True
@@ -880,14 +882,16 @@ async def pong(self) -> None:
880882
if parent.type is InteractionType.ping:
881883
adapter = async_context.get()
882884
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+
)
891895
)
892896
)
893897
self._responded = True

0 commit comments

Comments
 (0)