[−][src]Trait serenity::framework::standard::Command
A framework command.
Required Methods
Provided Methods
fn options(&self) -> Arc<CommandOptions>
fn init(&self)
Called when the command gets registered.
fn before(&self, &mut Context, &Message) -> bool
"before" middleware. Is called alongside the global middleware in the framework.
fn after(&self, &mut Context, &Message, &Result<(), Error>)
"after" middleware. Is called alongside the global middleware in the framework.
Implementations on Foreign Types
impl Command for Arc<dyn Command>
[src]
impl Command for Arc<dyn Command>
fn execute(&self, c: &mut Context, m: &Message, a: Args) -> Result<(), Error>
[src]
fn execute(&self, c: &mut Context, m: &Message, a: Args) -> Result<(), Error>
fn options(&self) -> Arc<CommandOptions>
[src]
fn options(&self) -> Arc<CommandOptions>
fn init(&self)
[src]
fn init(&self)
fn before(&self, c: &mut Context, m: &Message) -> bool
[src]
fn before(&self, c: &mut Context, m: &Message) -> bool
fn after(&self, c: &mut Context, m: &Message, res: &Result<(), Error>)
[src]
fn after(&self, c: &mut Context, m: &Message, res: &Result<(), Error>)