Macro jupiter::server_error
source · macro_rules! server_error { ($err:expr $(,)?) => { ... }; ($fmt:expr, $($arg:tt)*) => { ... }; }
Expand description
Provides a simple way of creating a CommandError which respesents a ServerError.
Example
use jupiter::commands::{Call, CommandResult};
fn my_command(call: &mut Call) -> CommandResult {
Err(jupiter::server_error!("We forgot to implement this command."))
}