# Struct command::object::Interaction

> An interaction as delivered to its bot (`interaction.created`).

`zaun_community_protocol::command::object::Interaction` · Struct

```rust
pub struct Interaction { … }
```

An interaction as delivered to its bot (`interaction.created`).

## Fields

### `interaction_id: InteractionId`

Host-assigned.

### `kind: InteractionType`

The kind.

### `bot_id: BotId`

The bot it is for.

### `channel_id: ChannelId`

Where it happened.

### `member: Member`

The invoker, as the bot may see it.

### `app_permissions: Permissions`

The bot's effective permissions in the channel.

### `locale: Option<String>`

The invoker's client locale.

### `message: Option<Box<Message>>`

Type 3: the message holding the component.

### `data: InteractionData`

By type.

### `created_at: u64`

When the host received it, ms.

## Trait implementations

`Clone`, `Debug`, `Deserialize<'de>`, `PartialEq`, `Serialize`, `StructuralPartialEq`

[Full rustdoc page](/docs/api/rust/zaun-community-protocol/zaun_community_protocol/command/object/interaction/struct.Interaction.html)
