Module slack_bolt.listener_matcher.async_builtins

Classes

class AsyncBuiltinListenerMatcher (*,
func: Callable[..., bool | Awaitable[bool]],
base_logger: logging.Logger | None = None)
Expand source code
class AsyncBuiltinListenerMatcher(BuiltinListenerMatcher, AsyncListenerMatcher):
    async def async_matches(self, req: AsyncBoltRequest, resp: BoltResponse) -> bool:
        return await self.func(  # type: ignore[misc]
            **build_async_required_kwargs(
                logger=self.logger,
                required_arg_names=self.arg_names,
                request=req,
                response=resp,
                this_func=self.func,
            )
        )

Ancestors

Inherited members