Message History
Fetch messages using ALO's fetchHistory and fetchHistoryAround methods.
Fetch messages in reverse chronological order
You can use the fetchHistory
method to fetch messages in reverse chronological order (from newest to oldest). fetchHistory
also makes it easy to paginate through history in the direction of your choice.
fetchHistory({ channelId: string, ... })
fetchHistory({ channelId: string, ... })
Fetch messages centered around a specific message
The fetchHistoryAround
method gives you the ability to jump back into history to a specific message and retrieve the messages that were sent immediately before and after it.
fetchHistoryAround({ channelId: string, messageId: string, ... })
Last updated