mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-10-20 23:42:58 +00:00
Add __repr__ method to various classes
This commit is contained in:
@@ -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