# Function command::object::find_interactive

> The enabled interactive component (button with a `custom_id`, or a select) with `custom_id` among a message's components: what a `MESSAGE_COMPONENT` interaction may name.

`zaun_community_protocol::command::object::find_interactive` · Function

```rust
pub fn find_interactive<'a>(components: &'a [Component], custom_id: &str) -> Option<&'a Component>
```

The enabled interactive component (button with a `custom_id`, or a select) with
`custom_id` among a message's components: what a `MESSAGE_COMPONENT` interaction may
name.

[Full rustdoc page](/docs/api/rust/zaun-community-protocol/zaun_community_protocol/command/object/component/find/fn.find_interactive.html)
