diff options
author | Trygve Aaberge <trygveaa@gmail.com> | 2023-10-21 23:31:00 +0200 |
---|---|---|
committer | Trygve Aaberge <trygveaa@gmail.com> | 2024-02-18 11:32:54 +0100 |
commit | cfbe97d9a476eb543498ad13547a023ace23dd17 (patch) | |
tree | e5ae9178adf185897fb82a78522182cecda32a05 /slack/slack_message.py | |
parent | 9e99c1d54eec2ab49a1a6a749bec1def8d182927 (diff) | |
download | wee-slack-cfbe97d9a476eb543498ad13547a023ace23dd17.tar.gz |
Make conversations.name not async
This means a lot of methods don't have to be async. It's especially
useful for the next commit adding conversations completions.
Diffstat (limited to 'slack/slack_message.py')
-rw-r--r-- | slack/slack_message.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/slack/slack_message.py b/slack/slack_message.py index 6d5b39e..18d3d3a 100644 --- a/slack/slack_message.py +++ b/slack/slack_message.py @@ -187,7 +187,7 @@ class PendingMessageItem: if self.item_type == "conversation": try: conversation = await self.message.workspace.conversations[self.item_id] - name = await conversation.name_with_prefix("short_name_without_padding") + name = conversation.name_with_prefix("short_name_without_padding") except (SlackApiError, SlackError) as e: if ( isinstance(e, SlackApiError) |