Skip to content

Struct ui::CommandBuilder

zaun_client::ui::CommandBuilder · Struct

pub struct CommandBuilder(…)

A slash, user or message command.

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

/name, lower case.

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

An entry in a member’s menu.

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

An entry in a message’s menu.

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

Adds an option (slash commands).

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

Bits the invoker needs; empty means the owner only.

pub fn build(self) -> ApplicationCommand

The command.

Clone, Debug

Full rustdoc page