pub struct Interactions { /* private fields */ }Implementations§
Source§impl Interactions
impl Interactions
pub fn new(public_key: String, token: String) -> Self
pub fn register_application_command_handler<T: 'static + Future<Output = Result<InteractionResponse>>>( &mut self, command_name: &'static str, handler: CommandHandler<T>, )
pub fn register_message_component_handler<T: 'static + Future<Output = Result<InteractionResponse>>>( &mut self, custom_id: CustomIdPattern, handler: ComponentHandler<T>, )
Trait Implementations§
Source§impl GetInteractionData for Interactions
impl GetInteractionData for Interactions
fn get_interactions(&self) -> &Interactions
Auto Trait Implementations§
impl Freeze for Interactions
impl !RefUnwindSafe for Interactions
impl !Send for Interactions
impl !Sync for Interactions
impl Unpin for Interactions
impl !UnwindSafe for Interactions
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