GitHub

DiscordGatewayService

API reference for DiscordGatewayService.

The gateway's dispatches.

Attributes

AttributeTypeDescription
dispatchStream[GatewayDispatch]

Every dispatch, after its sequence is stored.

Functions

__init__

__init__(pubsub) -> None
ParameterTypeDescription
pubsubPubSub[GatewayDispatch]
def __init__(self, pubsub: PubSub[GatewayDispatch]) -> None:
    self._pubsub = pubsub

from_dispatch

from_dispatch(t) -> Stream[GatewayDispatch]

The dispatches named t.

ParameterTypeDescription
tstr

Returns Stream[GatewayDispatch]

def from_dispatch(self, t: str) -> Stream[GatewayDispatch]:
    """The dispatches named ``t``."""
    return self.dispatch.filter(lambda found: found.t == t)