commonMain.net.folivo.trixnity.client.room.message.notice.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of trixnity-client-jvm Show documentation
Show all versions of trixnity-client-jvm Show documentation
Multiplatform Kotlin SDK for matrix-protocol
package net.folivo.trixnity.client.room.message
import net.folivo.trixnity.core.model.events.m.room.RoomMessageEventContent
fun MessageBuilder.notice(
body: String,
format: String? = null,
formattedBody: String? = null
) {
roomMessageBuilder(body, format, formattedBody) {
RoomMessageEventContent.TextBased.Notice(
body = this.body,
format = this.format,
formattedBody = this.formattedBody,
relatesTo = relatesTo,
mentions = mentions,
)
}
}