MessageList

interface MessageList(source)

List-like interface to transparently access cached and retrieve not-yet-received messages from Discord.

Supports traversing chat history in backward direction (from newest to the oldest messages). It potentially may traverse the whole chat history, so use with caution!

Types

Link copied to clipboard
interface MessageIterator

Functions

Link copied to clipboard
abstract fun asFlow(): Flow<Message>
Link copied to clipboard
abstract fun filterBy(filter: MessageFilter): MessageList
Link copied to clipboard
abstract suspend fun get(id: Snowflake): Message
open operator fun get(range: SnowflakeRange): MessageList
open operator fun get(range: ClosedRange<Instant>): MessageList
Link copied to clipboard
abstract operator fun iterator(): MessageList.MessageIterator
Link copied to clipboard
open fun subList(fromId: Snowflake? = null, toId: Snowflake? = null, toInclusive: Boolean = false): MessageList
open fun subList(fromDate: Instant? = null, toDate: Instant? = null, toInclusive: Boolean = false): MessageList

Inheritors

Link copied to clipboard

Extensions

Link copied to clipboard