# Struct prelude::ModalData

> Struct ModalData in zaun_bot.

`zaun_bot::prelude::ModalData` · Struct

```rust
pub struct ModalData { … }
```

## Fields

### `custom_id: String`

### `components: Vec<ModalValue>`

### `resolved: Resolved`

## Methods

### `text`

```rust
pub fn text(&self, custom_id: &str) -> Option<&str>
```

The text a modal input with `custom_id` held.

## Trait implementations

`Clone`, `Debug`

[Full rustdoc page](/docs/api/rust/zaun-bot/zaun_bot/bindings/zaun/bot/types/struct.ModalData.html)
