aboutsummaryrefslogtreecommitdiffstats
path: root/slack/slack_conversation.py
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2023-10-14 17:25:10 +0200
committerTrygve Aaberge <trygveaa@gmail.com>2024-02-18 11:32:54 +0100
commita1fedfb2b173a2240a0a695dfe8bf38bca352f0a (patch)
tree2fbc88613f2771e57c4f31c74585d9ce4db82201 /slack/slack_conversation.py
parent08f29b315dd3e3234357e4ffadea4b1334f2539a (diff)
downloadwee-slack-a1fedfb2b173a2240a0a695dfe8bf38bca352f0a.tar.gz
Add some repr methods for useful debug printing
Diffstat (limited to 'slack/slack_conversation.py')
-rw-r--r--slack/slack_conversation.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/slack/slack_conversation.py b/slack/slack_conversation.py
index 4a33989..ba76803 100644
--- a/slack/slack_conversation.py
+++ b/slack/slack_conversation.py
@@ -121,6 +121,9 @@ class SlackConversation(SlackBuffer):
info_response = await workspace.api.fetch_conversations_info(conversation_id)
return cls(workspace, info_response["channel"])
+ def __repr__(self):
+ return f"{self.__class__.__name__}({self.workspace}, {self.id})"
+
@property
def id(self) -> str:
return self._info["id"]