sendMessage

suspend fun ChannelClient.sendMessage(message: String = "", vararg embeds: Embed, components: List<ActionRow>? = null): Message(source)

Calls ChannelClient.createMessage for text messages without needing to create a CreateMessage object first.

Return

the created Message.

Parameters

message

The text message to send.

embeds

The embeds to include with the message.

components

The message components to use. Null for none.

Throws

upon client errors.