sendDMToUser

fun sendDMToUser(userId: String, embed: EmbedBuilder): MessageCreateAction?(source)

Sends a direct message to a user with the provided user ID and embed.

Return

The message create action of the sent message, or null if an error occurs.

Parameters

userId

The ID of the user to send the direct message to.

embed

The embed to be sent.