aboutsummaryrefslogtreecommitdiffstats
path: root/slack/slack_message.py
diff options
context:
space:
mode:
Diffstat (limited to 'slack/slack_message.py')
-rw-r--r--slack/slack_message.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/slack/slack_message.py b/slack/slack_message.py
index 21402dd..c1953d3 100644
--- a/slack/slack_message.py
+++ b/slack/slack_message.py
@@ -180,6 +180,9 @@ class PendingMessageItem:
self.item_id = item_id
self.display_type: Literal["mention", "chat"] = display_type
+ def __repr__(self):
+ return f"{self.__class__.__name__}({self.message}, {self.item_type}, {self.item_id}, {self.display_type})"
+
async def resolve(self) -> str:
if self.item_type == "conversation":
conversation = await self.message.workspace.conversations[self.item_id]
@@ -254,6 +257,9 @@ class SlackMessage:
)
self._deleted = False
+ def __repr__(self):
+ return f"{self.__class__.__name__}({self.conversation}, {self.ts})"
+
@property
def workspace(self) -> SlackWorkspace:
return self.conversation.workspace