# Function bindings::zaun::bot::interactions::respond

> The initial response, within 3 s (the runtime defers automatically at 2.5 s). Returns the message id when the response created a channel message.

`zaun_bot::bindings::zaun::bot::interactions::respond` · Function

```rust
pub fn respond(interaction_id: &str, response: &Response) -> Result<Option<Id>, HostError>
```

The initial response, within 3 s (the runtime defers automatically at 2.5 s).
Returns the message id when the response created a channel message.

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