pub trait Command: Any + Send + Sync {
fn name(&self) -> &'static str;
fn aliases(&self) -> Vec<&'static str>;
fn help(&self) -> &'static str;
fn usage(&self) -> &'static str;
fn execute<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
client: &'life1 Client,
args: Vec<&'life2 str>
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait;
}
Expand description
Add a command to the plugin.