Home > borogove > Chat > getMessagesBefore
Chat.getMessagesBefore() method
Fetch a page of messages before some point
Signature:
getMessagesBefore(before: borogove_ChatMessage | null): Promise<Array markdown="1"<borogove markdown="1"_ChatMessage>>;
Parameters
| Parameter | Type | Description |
|---|---|---|
| before | borogove_ChatMessage | null | ChatMessage to look before, or null to start at the end |
Returns:
Promise<Array<borogove_ChatMessage>>
Promise resolving to an array of ChatMessage that are found