# Struct SubCommandGroup

> Builds a group of sub-commands (`/name group sub`).

`zaun_bot::SubCommandGroup` · Struct

```rust
pub struct SubCommandGroup(…)
```

Builds a group of sub-commands (`/name group sub`).

## Methods

### `new`

```rust
pub fn new<impl Into<String>, impl Into<String>>(name: impl Into<String>, description: impl Into<String>) -> Self
```

A group.

### `sub_command`

```rust
pub fn sub_command(self, sub: SubCommand) -> Self
```

Adds a sub-command.

## Trait implementations

`Clone`, `Debug`

[Full rustdoc page](/docs/api/rust/zaun-bot/zaun_bot/command/struct.SubCommandGroup.html)
