[−][src]Struct telexide::framework::Framework
A utility for easily managing commands.
Refer to the module-level documentation for more detail
Methods
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 Send for Framework
impl Sync for Framework
impl Unpin for Framework
impl UnwindSafe for Framework
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> UnsafeAny for T where
T: Any,
T: Any,