getMessagesBefore

suspend fun getMessagesBefore(limit: Int = 50, messageId: String): List<Message>(source)

Get messages from this channel, before a given message.

Return

A list of messages before the specified message.

Parameters

limit

The max number of messages to return, between 1 and 100. Defaults to 50.

messageId

The message to get messages before.

Throws