Skip to content

Struct SubCommand

zaun_bot::SubCommand · Struct

pub struct SubCommand(…)

Builds a sub-command.

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

A sub-command (/name sub).

pub fn option(self, option: CommandOptionBuilder) -> Self

Adds an option.

Clone, Debug

Full rustdoc page