Macro command
macro_rules! command {
($flag:ident, $($k:tt)*) => { ... };
}
Expand description
Creates a CommandContent
instance with the given flag and formatted data.
ยงArguments
$flag
- ACommandFlag
variant (JSON
orEmpty
) that represents the flag for the command.$($k:tt)*
- A format string and its arguments to be used as the data in theCommandContent
instance.