Function egg_mode::direct::delete[][src]

pub async fn delete(id: u64, token: &Token) -> Result<Response<()>, Error>
Expand description

Delete the direct message with the given ID.

The authenticated user must be the sender of this DM for this call to be successful.

This function will only delete the DM for the user - other users who have received the message will still see it.

Twitter does not return anything upon a successful deletion, so this function will return an empty Response upon success.