# Struct command::object::ApplicationCommand

> An application command.

`zaun_community_protocol::command::object::ApplicationCommand` · Struct

```rust
pub struct ApplicationCommand { … }
```

An application command.

## Fields

### `command_id: Option<CommandId>`

Host-assigned; absent in `command.set`.

### `bot_id: Option<BotId>`

The bot that owns it: in `command.list` and `command.updated`, absent elsewhere.

### `kind: CommandType`

Slash, user or message command.

### `name: String`

The name.

### `name_localizations: BTreeMap<String, String>`

Localized names.

### `description: String`

1–100 scalars for slash commands; `""` for user and message commands.

### `description_localizations: BTreeMap<String, String>`

Localized descriptions.

### `options: Vec<CommandOption>`

Slash commands only, ≤ 25.

### `default_member_permissions: Option<Permissions>`

Bits the invoker needs in the channel; `"0"` is owner only; absent is everyone.

## Trait implementations

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

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