aboutsummaryrefslogtreecommitdiffstats
path: root/slack/slack_buffer.py
diff options
context:
space:
mode:
Diffstat (limited to 'slack/slack_buffer.py')
-rw-r--r--slack/slack_buffer.py18
1 files changed, 17 insertions, 1 deletions
diff --git a/slack/slack_buffer.py b/slack/slack_buffer.py
index a3155e6..addd2be 100644
--- a/slack/slack_buffer.py
+++ b/slack/slack_buffer.py
@@ -4,13 +4,24 @@ import re
import time
from abc import ABC, abstractmethod
from contextlib import contextmanager
-from typing import TYPE_CHECKING, Dict, List, Mapping, Match, Optional, Set, Tuple
+from typing import (
+ TYPE_CHECKING,
+ Dict,
+ Generator,
+ List,
+ Mapping,
+ Match,
+ Optional,
+ Set,
+ Tuple,
+)
import weechat
from slack.log import print_error
from slack.shared import shared
from slack.slack_message import SlackMessage, SlackTs
+from slack.slack_user import SlackUser
from slack.task import gather, run_async
from slack.util import get_callback_name, htmlescape
@@ -196,6 +207,11 @@ class SlackBuffer(ABC):
@property
@abstractmethod
+ def members(self) -> Generator[SlackUser, None, None]:
+ raise NotImplementedError()
+
+ @property
+ @abstractmethod
def messages(self) -> Mapping[SlackTs, SlackMessage]:
raise NotImplementedError()