Struct discord_flows::DefaultBot
source · pub struct DefaultBot;
Trait Implementations§
source§impl Bot for DefaultBot
impl Bot for DefaultBot
fn get_token(&self) -> String
source§fn listen_to_messages_from_channel<'life0, 'async_trait>(
&'life0 self,
channel_id: u64
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn listen_to_messages_from_channel<'life0, 'async_trait>( &'life0 self, channel_id: u64 ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where Self: Sync + 'async_trait, 'life0: 'async_trait,
Create a message listener for Discord bot provided by flows.network Read more
source§fn listen_to_application_commands_from_channel<'life0, 'async_trait>(
&'life0 self,
channel_id: u64
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn listen_to_application_commands_from_channel<'life0, 'async_trait>( &'life0 self, channel_id: u64 ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where Self: Sync + 'async_trait, 'life0: 'async_trait,
Create a application command listener for Discord bot provided by flows.network Read more
source§fn get_client(&self) -> Http
fn get_client(&self) -> Http
Get a Discord Client as a bot represented by
bot_token
Auto Trait Implementations§
impl RefUnwindSafe for DefaultBot
impl Send for DefaultBot
impl Sync for DefaultBot
impl Unpin for DefaultBot
impl UnwindSafe for DefaultBot
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