TestMessageContent

class TestMessageContent(var id: ID = UUID.random(), var messages: Messages = emptyMessages(), var plainText: String? = messages.asSequence().filterIsInstance<PlainText>().joinToString("") { it.text }, var onDelete: (Array<out DeleteOption>) -> Unit = {}) : MessageContent(source)

Author

ForteScarlet

Constructors

Link copied to clipboard
constructor(id: ID = UUID.random(), messages: Messages = emptyMessages(), plainText: String? = messages.asSequence().filterIsInstance<PlainText>().joinToString("") { it.text }, onDelete: (Array<out DeleteOption>) -> Unit = {})

Properties

Link copied to clipboard
open override var id: ID
Link copied to clipboard
open override var messages: Messages
Link copied to clipboard
Link copied to clipboard
open override var plainText: String?

Functions

Link copied to clipboard
open suspend override fun delete(vararg options: DeleteOption)

Inherited functions

Link copied to clipboard
open suspend fun reference(): MessageReference?
Link copied to clipboard
open suspend fun referenceMessage(): MessageContent?