mirror of
https://github.com/Rapptz/discord.py.git
synced 2026-11-20 13:29:03 +00:00
Add __repr__ method to various classes
This commit is contained in:
1 parent
667e7c9065
commit
2bcbd49bc6
4 files changed
+18
No files matched your search
@@ -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']
|
||||
|
||||
|
||||
Reference in new issue
Block a user