Add __repr__ method to various classes

This commit is contained in:
owocado authored and GitHub committed 2025-06-20 14:57:10 -04:00
1 parent 667e7c9065
commit 2bcbd49bc6
4 files changed
+18

No files matched your search

+3
View File
@@ -712,6 +712,9 @@ class InteractionCallbackResponse(Generic[ClientT]):
self.type: InteractionResponseType = type
self._update(data)
def __repr__(self) -> str:
return f'<InteractionCallbackResponse id={self.id} type={self.type!r}>'
def _update(self, data: InteractionCallbackPayload) -> None:
interaction = data['interaction']