Skip to main content

command

Function command 

Source
pub fn command(name: &str) -> InteractionBuilder<CommandData>
Available on crate feature testing only.
Expand description

The slash Command name, without Options yet

use composure::testing;

let ban = testing::command("mod")
    .subcommand("ban")
    .user_option("user", &testing::users::bob())
    .option("reason", "spam")
    .option("days", 7)
    .build();