Skip to content

Commit 5aace18

Browse files
committed
feat: Add __repr__ to InteractionCallback
1 parent c3f9958 commit 5aace18

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

discord/interactions.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1770,6 +1770,11 @@ def __init__(self, data: InteractionCallbackPayload):
17701770
"response_message_ephemeral", False
17711771
)
17721772

1773+
def __repr__(self):
1774+
return (f"<InteractionCallback "
1775+
f"_response_message_loading={self._response_message_loading} "
1776+
f"_response_message_ephemeral={self._response_message_ephemeral}>")
1777+
17731778
def is_loading(self) -> bool:
17741779
"""Indicates whether the response message is in a loading state."""
17751780
return self._response_message_loading

0 commit comments

Comments
 (0)