Struct ui::CommandBuilder
zaun_client::ui::CommandBuilder · Struct
pub struct CommandBuilder(…)A slash, user or message command.
Methods
Section titled “Methods”pub fn slash(name: &str, description: &str) -> Self/name, lower case.
pub fn user(name: &str) -> SelfAn entry in a member’s menu.
message
Section titled “message”pub fn message(name: &str) -> SelfAn entry in a message’s menu.
option
Section titled “option”pub fn option(self, option: OptionBuilder) -> SelfAdds an option (slash commands).
permissions
Section titled “permissions”pub const fn permissions(self, bits: Permissions) -> SelfBits the invoker needs; empty means the owner only.
pub fn build(self) -> ApplicationCommandThe command.
Trait implementations
Section titled “Trait implementations”Clone, Debug