Skip to main content

MessageExt

Trait MessageExt 

Source
pub trait MessageExt {
    // Required methods
    fn reply(
        &self,
        http: impl AsRef<HttpClient>,
        mention: bool,
    ) -> SendMessageBuilder;
    fn edit(&self, http: impl AsRef<HttpClient>) -> EditMessageBuilder;
    fn delete<'life0, 'async_trait>(
        &'life0 self,
        http: impl 'async_trait + AsRef<HttpClient> + Send,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn clear_reactions<'life0, 'async_trait>(
        &'life0 mut self,
        http: impl 'async_trait + AsRef<HttpClient> + Send,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn pin_message<'life0, 'async_trait>(
        &'life0 mut self,
        http: impl 'async_trait + AsRef<HttpClient> + Send,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn unpin_message<'life0, 'async_trait>(
        &'life0 mut self,
        http: impl 'async_trait + AsRef<HttpClient> + Send,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn react<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        http: impl 'async_trait + AsRef<HttpClient> + Send,
        emoji: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn unreact<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        http: impl 'async_trait + AsRef<HttpClient> + Send,
        emoji: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn remove_reaction<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 mut self,
        http: impl 'async_trait + AsRef<HttpClient> + Send,
        emoji: &'life1 str,
        options: &'life2 OptionsUnreact,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn jump_link(&self, config: impl AsRef<StoatConfig>) -> String;
}

Required Methods§

Source

fn reply( &self, http: impl AsRef<HttpClient>, mention: bool, ) -> SendMessageBuilder

Source

fn edit(&self, http: impl AsRef<HttpClient>) -> EditMessageBuilder

Source

fn delete<'life0, 'async_trait>( &'life0 self, http: impl 'async_trait + AsRef<HttpClient> + Send, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn clear_reactions<'life0, 'async_trait>( &'life0 mut self, http: impl 'async_trait + AsRef<HttpClient> + Send, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn pin_message<'life0, 'async_trait>( &'life0 mut self, http: impl 'async_trait + AsRef<HttpClient> + Send, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn unpin_message<'life0, 'async_trait>( &'life0 mut self, http: impl 'async_trait + AsRef<HttpClient> + Send, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn react<'life0, 'life1, 'async_trait>( &'life0 mut self, http: impl 'async_trait + AsRef<HttpClient> + Send, emoji: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn unreact<'life0, 'life1, 'async_trait>( &'life0 mut self, http: impl 'async_trait + AsRef<HttpClient> + Send, emoji: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn remove_reaction<'life0, 'life1, 'life2, 'async_trait>( &'life0 mut self, http: impl 'async_trait + AsRef<HttpClient> + Send, emoji: &'life1 str, options: &'life2 OptionsUnreact, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§