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."))
}