Skip to content

Commit c505fbb

Browse files
committed
chore: Clarify exception message
1 parent 27fc7db commit c505fbb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

discord/interactions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ async def original_response(self) -> InteractionMessage:
477477
# TODO: fix later to not raise?
478478
channel = self.channel
479479
if channel is None:
480-
raise ClientException("Channel for message could not be resolved")
480+
raise ClientException("Channel for message could not be resolved. Please open a issue on GitHub if you encounter this error.")
481481

482482
adapter = async_context.get()
483483
http = self._state.http
@@ -930,7 +930,7 @@ async def _process_callback_response(
930930
# TODO: fix later to not raise?
931931
channel = self._parent.channel
932932
if channel is None:
933-
raise ClientException("Channel for message could not be resolved")
933+
raise ClientException("Channel for message could not be resolved. Please open a issue on GitHub if you encounter this error.")
934934
state = _InteractionMessageState(self._parent, self._parent._state)
935935
message = InteractionMessage(state=state, channel=channel, data=callback_response["resource"]["message"]) # type: ignore
936936
self._parent._original_response = message

0 commit comments

Comments
 (0)