pub async fn edit_message(
        &self,
        channel: ChannelId,
        message: MessageId,
        content: &str,
    ) -> Result {
        #[derive(serde::Serialize)]
        struct MessagePatch<'a> {
            content: &'a str,
        }
        self.client
            .patch(ep!(self, "/channels/{}/messages/{}" channel, message))
            .json(&MessagePatch { content })
            .send()
            .await?
            .error_for_status()?;
        Ok(())
    }
/// Edits a message to contain content `content`
Edits a message to contain content `content`
Edits a message to contain content ` content `
pub async fn edit_message(
        &self,
        channel: ChannelId,
        message: MessageId,
        content: &str,
    ) -> Result {
        #[derive(serde::Serialize)]
        struct MessagePatch<'a> {
            content: &'a str,
        }
        self.client
            .patch(ep!(self, "/channels/{}/messages/{}" channel, message))
            .json(&MessagePatch { content })
            .send()
            .await?
            .error_for_status()?;
        Ok(())
    }
pub async fn edit_message ( & self , channel : ChannelId , message : MessageId , content : & str , ) -> Result { # [ derive ( serde Serialize ) ] struct MessagePatch < ' a > { content : & ' a str , } self . client . patch ( ep ! ( self " " channel message ) ) . json ( & MessagePatch { content } ) . send ( ) . await ? . error_for_status ( ) ? ; Ok ( ( ) ) }
Edits a message to contain content `content`
Edits a message to contain content ` content `
&self
channel
ChannelId
message
MessageId
content
&str
&self
channel
ChannelId
message
MessageId
content
&str