sendEmbed
suspend fun ChannelClient.sendEmbed(message: String = "", components: List<ActionRow>? = null, block: Embed.() -> Unit): Message(source)
Calls ChannelClient.createMessage for embedded messages without needing to create a CreateMessage object first. Also accepts a lambda that can be used to configure an Embed object.
Return
the created Message.
Parameters
message
The text message to send.
components
The message components to use. Null for none.
block
The block to configure the Embed object with.
Throws
upon client errors.