buildMessage

fun buildMessage(properties: MessageBuilder.() -> MessageBuilder): Message

Build a Message

Return

the final Message

Samples

import dev.jaims.kda.message.asMessage
import dev.jaims.kda.message.buildEmbed
import dev.jaims.kda.message.buildMessage
import java.time.LocalTime
fun main() { 
   //sampleStart 
   val message = buildMessage {
    setContent("This is my content!")
    setEmbed(
        buildEmbed {
            setDescription("This is my description.")
            setTimestamp(LocalTime.now())
            setAuthor("Its me... Im the author.")
        }
    )
    setTTS(true)
} 
   //sampleEnd
}

Parameters

properties

the properties for the message to have.