Function create_dm
Source pub async fn create_dm(
client: &Client,
token: &str,
recipient_id: &str,
) -> Result<Value, Box<dyn Error>>
Expand description
Creates a DM channel with a user.
§Arguments
client
- The HTTP client used to send the request.
token
- The bot token for authentication.
recipient_id
- The ID of the user to create a DM with.
§Returns
A result containing the created DM channel information as a JSON value.