aboutsummaryrefslogtreecommitdiffstats
path: root/slack/slack_conversation.py
diff options
context:
space:
mode:
Diffstat (limited to 'slack/slack_conversation.py')
-rw-r--r--slack/slack_conversation.py18
1 files changed, 17 insertions, 1 deletions
diff --git a/slack/slack_conversation.py b/slack/slack_conversation.py
index e415dd4..a7a6928 100644
--- a/slack/slack_conversation.py
+++ b/slack/slack_conversation.py
@@ -2,7 +2,17 @@ from __future__ import annotations
import hashlib
from collections import OrderedDict
-from typing import TYPE_CHECKING, Dict, List, Mapping, NoReturn, Optional, Tuple, Union
+from typing import (
+ TYPE_CHECKING,
+ Dict,
+ Generator,
+ List,
+ Mapping,
+ NoReturn,
+ Optional,
+ Tuple,
+ Union,
+)
import weechat
@@ -157,6 +167,12 @@ class SlackConversation(SlackBuffer):
return "conversation"
@property
+ def members(self) -> Generator[SlackUser, None, None]:
+ for user_or_bot in self._nicklist:
+ if isinstance(user_or_bot, SlackUser):
+ yield user_or_bot
+
+ @property
def messages(self) -> Mapping[SlackTs, SlackMessage]:
return self._messages