The gateway's dispatches.
Attributes#
| Attribute | Type | Description |
|---|---|---|
dispatch | Stream[GatewayDispatch] | Every dispatch, after its sequence is stored. |
Functions#
__init__#
__init__(pubsub) -> None| Parameter | Type | Description |
|---|---|---|
pubsub | PubSub[GatewayDispatch] |
def __init__(self, pubsub: PubSub[GatewayDispatch]) -> None:
self._pubsub = pubsubfrom_dispatch#
from_dispatch(t) -> Stream[GatewayDispatch]The dispatches named t.
| Parameter | Type | Description |
|---|---|---|
t | str |
Returns Stream[GatewayDispatch]
def from_dispatch(self, t: str) -> Stream[GatewayDispatch]:
"""The dispatches named ``t``."""
return self.dispatch.filter(lambda found: found.t == t)