dm

inline suspend fun User.dm(builder: MessageCreateBuilder.() -> Unit): Message?

Send a private message to a user, if they have their DMs enabled.

Return

The sent message, or null if the user has their DMs disabled.

Parameters

builder

Builder lambda for populating the message fields.


suspend fun User.dm(content: String): Message?

Send a private message to a user, if they have their DMs enabled.

Return

The sent message, or null if the user has their DMs disabled.

Parameters

content

Message content.