Module slack_bolt.listener_matcher.listener_matcher
Expand source code
from abc import abstractmethod, ABCMeta
from slack_bolt.request import BoltRequest
from slack_bolt.response import BoltResponse
class ListenerMatcher(metaclass=ABCMeta):
@abstractmethod
def matches(self, req: BoltRequest, resp: BoltResponse) -> bool:
"""Matches against the request and returns True if matched.
Args:
req: The request
resp: The response
Returns:
True if matched.
"""
raise NotImplementedError()
Classes
class ListenerMatcher
-
Expand source code
class ListenerMatcher(metaclass=ABCMeta): @abstractmethod def matches(self, req: BoltRequest, resp: BoltResponse) -> bool: """Matches against the request and returns True if matched. Args: req: The request resp: The response Returns: True if matched. """ raise NotImplementedError()
Subclasses
Methods
def matches(self, req: BoltRequest, resp: BoltResponse) ‑> bool
-
Matches against the request and returns True if matched.
Args
req
- The request
resp
- The response
Returns
True if matched.
Expand source code
@abstractmethod def matches(self, req: BoltRequest, resp: BoltResponse) -> bool: """Matches against the request and returns True if matched. Args: req: The request resp: The response Returns: True if matched. """ raise NotImplementedError()