CustomDirectMessageBuilder

class CustomDirectMessageBuilder : JsonBuilder<DirectMessage> , MutableMap<String, Any?>

Custom payload builder for DirectMessage.

Constructors

Link copied to clipboard
fun CustomDirectMessageBuilder()

Functions

Link copied to clipboard
open override fun build(): DirectMessage

Builds this json, and creates T of JsonModel.

Link copied to clipboard
open override fun clear()
Link copied to clipboard
open fun compute(p0: String, p1: BiFunction<in String, in Any?, out Any?>): Any?
Link copied to clipboard
open fun computeIfAbsent(p0: String, p1: Function<in String, out Any?>): Any?
Link copied to clipboard
open fun computeIfPresent(p0: String, p1: BiFunction<in String, in Any, out Any?>): Any?
Link copied to clipboard
open override fun containsKey(key: String): Boolean
Link copied to clipboard
open override fun containsValue(value: Any?): Boolean
Link copied to clipboard
fun entities(json: JsonObject)

Sets entities.

Link copied to clipboard
open fun forEach(p0: BiConsumer<in String, in Any?>)
Link copied to clipboard
open operator override fun get(key: String): Any?
Link copied to clipboard
open fun getOrDefault(key: String, defaultValue: Any?): Any?
Link copied to clipboard
open override fun isEmpty(): Boolean
Link copied to clipboard
open fun merge(    p0: String,     p1: Any,     p2: BiFunction<in Any, in Any, out Any?>): Any?
Link copied to clipboard
open override fun put(key: String, value: Any?): Any?
Link copied to clipboard
open override fun putAll(from: Map<out String, Any?>)
Link copied to clipboard
open fun putIfAbsent(p0: String, p1: Any?): Any?
Link copied to clipboard
fun read()

Sets read.

Link copied to clipboard
fun recipient(builder: CustomUserBuilder.() -> Unit)

Sets recipient.

Link copied to clipboard
open override fun remove(key: String): Any?
open fun remove(key: String, value: Any?): Boolean
Link copied to clipboard
open fun replace(p0: String, p1: Any?): Any?
open fun replace(    p0: String,     p1: Any?,     p2: Any?): Boolean
Link copied to clipboard
open fun replaceAll(p0: BiFunction<in String, in Any?, out Any?>)
Link copied to clipboard
fun sender(builder: CustomUserBuilder.() -> Unit)

Sets sender.

Link copied to clipboard
fun text(text: () -> Any?)

Sets text.

Properties

Link copied to clipboard
var createdAt: TemporalAccessor? = null

"created_at".

Link copied to clipboard
open override val entries: MutableSet<MutableMap.MutableEntry<String, Any?>>
Link copied to clipboard
open override val keys: MutableSet<String>
Link copied to clipboard
open override val size: Int
Link copied to clipboard
open override val values: MutableCollection<Any?>