type CommandResult = Result<Option<String>, String>;
Expand description

Represents the feedback shown to the user of a command, if any. Server commands give their feedback as an event, so in those cases this will always be Ok(None). An Err variant will be be displayed with the error icon and text color

Aliased Type§

enum CommandResult {
    Ok(Option<String>),
    Err(String),
}

Variants§

§1.0.0

Ok(Option<String>)

Contains the success value

§1.0.0

Err(String)

Contains the error value