type CommandResult = Result<Option<Content>, Content>;
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.
- Ok(Some(Content)) - Success with a message to display
- Ok(None) - Success with no message (server commands typically use this)
- Err(Content) - Error with a message to display
Aliased Type§
enum CommandResult {
Ok(Option<Content>),
Err(Content),
}