Interface MessagesIterator<T>

interface MessagesIterator<T> {
    lastMessage?: string;
    limit: number;
    [asyncIterator](): AsyncIterator<Message<T>[], any, undefined>;
}

Type Parameters

Hierarchy

  • AsyncIterable<Message<T>[]>
    • MessagesIterator

Properties

lastMessage?: string

The most recent "last" message seen by the iterator, used for future requests.

limit: number

The current limit of remaining messages to get.

Methods

  • Returns AsyncIterator<Message<T>[], any, undefined>