# Function bindings::zaun::bot::messages::dm

> A direct message to member `member-id` (capability `dms`): opens the DM when needed, then sends. Returns the DM's channel id and the message id.

`zaun_bot::bindings::zaun::bot::messages::dm` · Function

```rust
pub fn dm(member_id: &str, body: &MessageBody) -> Result<(Id, Id), HostError>
```

A direct message to member `member-id` (capability `dms`): opens the DM when needed,
then sends. Returns the DM's channel id and the message id.

[Full rustdoc page](/docs/api/rust/zaun-bot/zaun_bot/bindings/zaun/bot/messages/fn.dm.html)
