GitHub

OutgoingEnvelope

API reference for OutgoingEnvelope.

Attributes

AttributeTypeDescription
envelopeAckChunk | Interrupt
rpcAnyRpc = _never_rpc

Functions

__init__

__init__(*, envelope, rpc=_never_rpc) -> None
ParameterTypeDescription
envelopeAckChunk | Interrupt
rpcAnyRpc = _never_rpc

interrupt

interrupt(*, address, id, request_id) -> OutgoingEnvelope
ParameterTypeDescription
addressEntityAddress
idSnowflake
request_idSnowflake

Returns OutgoingEnvelope

@staticmethod
def interrupt(
    *, address: EntityAddress, id: Snowflake, request_id: Snowflake
) -> OutgoingEnvelope:
    return OutgoingEnvelope(envelope=Interrupt(id=id, address=address, request_id=request_id))