Skip to content

Struct SubCommandGroup

zaun_bot::SubCommandGroup · Struct

pub struct SubCommandGroup(…)

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

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

A group.

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

Adds a sub-command.

Clone, Debug

Full rustdoc page