# Struct ui::CommandBuilder

> A slash, user or message command.

`zaun_client::ui::CommandBuilder` · Struct

```rust
pub struct CommandBuilder(…)
```

A slash, user or message command.

## Methods

### `slash`

```rust
pub fn slash(name: &str, description: &str) -> Self
```

`/name`, lower case.

### `user`

```rust
pub fn user(name: &str) -> Self
```

An entry in a member's menu.

### `message`

```rust
pub fn message(name: &str) -> Self
```

An entry in a message's menu.

### `option`

```rust
pub fn option(self, option: OptionBuilder) -> Self
```

Adds an option (slash commands).

### `permissions`

```rust
pub const fn permissions(self, bits: Permissions) -> Self
```

Bits the invoker needs; empty means the owner only.

### `build`

```rust
pub fn build(self) -> ApplicationCommand
```

The command.

## Trait implementations

`Clone`, `Debug`

[Full rustdoc page](/docs/api/rust/zaun-client/zaun_client/ui/command/struct.CommandBuilder.html)
