Add __repr__ method to various classes

This commit is contained in:
owocado
2025-06-21 00:27:10 +05:30
committed by GitHub
parent 667e7c9065
commit 2bcbd49bc6
4 changed files with 18 additions and 0 deletions

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']