File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -477,7 +477,9 @@ async def original_response(self) -> InteractionMessage:
477
477
# TODO: fix later to not raise?
478
478
channel = self .channel
479
479
if channel is None :
480
- raise ClientException ("Channel for message could not be resolved. Please open a issue on GitHub if you encounter this error." )
480
+ raise ClientException (
481
+ "Channel for message could not be resolved. Please open a issue on GitHub if you encounter this error."
482
+ )
481
483
482
484
adapter = async_context .get ()
483
485
http = self ._state .http
@@ -928,7 +930,9 @@ async def _process_callback_response(
928
930
# TODO: fix later to not raise?
929
931
channel = self ._parent .channel
930
932
if channel is None :
931
- raise ClientException ("Channel for message could not be resolved. Please open a issue on GitHub if you encounter this error." )
933
+ raise ClientException (
934
+ "Channel for message could not be resolved. Please open a issue on GitHub if you encounter this error."
935
+ )
932
936
state = _InteractionMessageState (self ._parent , self ._parent ._state )
933
937
message = InteractionMessage (state = state , channel = channel , data = callback_response ["resource" ]["message" ]) # type: ignore
934
938
self ._parent ._original_response = message
You can’t perform that action at this time.
0 commit comments