pub struct FrameworkBuilder { /* private fields */ }
Expand description
A FrameworkBuilder for slash commands.
Implementations§
source§impl FrameworkBuilder
impl FrameworkBuilder
sourcepub fn new() -> Self
pub fn new() -> Self
Make a new FrameworkBuilder
.
sourcepub fn help_command(&mut self, command: HelpCommand) -> &mut Self
pub fn help_command(&mut self, command: HelpCommand) -> &mut Self
Add a help command
sourcepub fn build(&mut self) -> Result<Framework, BuilderError>
pub fn build(&mut self) -> Result<Framework, BuilderError>
Build a framework
Trait Implementations§
source§impl Debug for FrameworkBuilder
impl Debug for FrameworkBuilder
Auto Trait Implementations§
impl !RefUnwindSafe for FrameworkBuilder
impl Send for FrameworkBuilder
impl Sync for FrameworkBuilder
impl Unpin for FrameworkBuilder
impl !UnwindSafe for FrameworkBuilder
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