buildEmbed

fun buildEmbed(properties: EmbedBuilder.() -> EmbedBuilder): MessageEmbed

Build a Message Embed.

Return

the final MessageEmbed

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 = buildEmbed {
    setTitle("Title", "https://jaims.dev")
}.asMessage() 
   //sampleEnd
}

Parameters

properties

the properties for the embed to have.