Struct telexide::framework::Framework [−][src]
pub struct Framework { /* fields omitted */ }
A utility for easily managing commands.
Refer to the module-level documentation for more detail
Implementations
impl Framework
[src]
impl Framework
[src]pub fn new(bot_name: &str) -> Self
[src]
Creates a new framework instance given the bot name
pub fn add_command(&mut self, command: &TelegramCommand)
[src]
add a command to the registered commands
pub fn get_commands(&self) -> &Vec<TelegramCommand>
[src]
get all registered commands
pub fn fire_commands(&self, context: Context, update: Update)
[src]
fires off all commands matching the content in the update
Auto Trait Implementations
impl RefUnwindSafe for Framework
impl RefUnwindSafe for Framework
impl UnwindSafe for Framework
impl UnwindSafe for Framework
Blanket Implementations
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> UnsafeAny for T where
T: Any,
impl<T> UnsafeAny for T where
T: Any,