Struct pikadick_slash_framework::HelpCommand
source · pub struct HelpCommand { /* private fields */ }
Expand description
A slash framework help command
Implementations§
source§impl HelpCommand
impl HelpCommand
sourcepub fn description(&self) -> &str
pub fn description(&self) -> &str
Get the help command description
sourcepub fn arguments(&self) -> &[ArgumentParam]
pub fn arguments(&self) -> &[ArgumentParam]
Get the help command arguments
sourcepub async fn fire_on_process(
&self,
ctx: Context,
interaction: CommandInteraction,
map: Arc<HashMap<Box<str>, Command>>
) -> Result<(), BoxError>
pub async fn fire_on_process( &self, ctx: Context, interaction: CommandInteraction, map: Arc<HashMap<Box<str>, Command>> ) -> Result<(), BoxError>
Fire the on_process hook
sourcepub fn register(&self, command: CreateCommand) -> CreateCommand
pub fn register(&self, command: CreateCommand) -> CreateCommand
Register this help command
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for HelpCommand
impl Send for HelpCommand
impl Sync for HelpCommand
impl Unpin for HelpCommand
impl !UnwindSafe for HelpCommand
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more