pub fn content(mut self, content: Option<String>) -> Result<Self, UpdateWebhookMessageError> {
        if let Some(content_ref) = content.as_ref() {
            if !validate::content_limit(content_ref) {
                return Err(UpdateWebhookMessageError::ContentInvalid {
                    content: content.expect("content is known to be some"),
                });
            }
        }

        self.fields.content.replace(content);

        Ok(self)
    }
/// Set the content of the message.
///
/// Pass `None` if you want to remove the message content.
///
/// Note that if there is are no embeds then you will not be able to remove
/// the content of the message.
///
/// The maximum length is 2000 UTF-16 characters.
///
/// # Errors
///
/// Returns [`UpdateWebhookMessageError::ContentInvalid`] if the content
/// length is too long.
Set the content of the message.
Pass `None` if you want to remove the message content.

Note that if there is are no embeds then you will not be able to remove
the content of the message.

The maximum length is 2000 UTF-16 characters.
Set the content of the message . Pass ` None ` if you want to remove the message content . Note that if there is are no embeds then you will not be able to remove the content of the message . The maximum length is 2000 UTF - 16 characters .
pub fn content(mut self, content: Option<String>) -> Result<Self, UpdateWebhookMessageError> {
        if let Some(content_ref) = content.as_ref() {
            if !validate::content_limit(content_ref) {
                return Err(UpdateWebhookMessageError::ContentInvalid {
                    content: content.expect("content is known to be some"),
                });
            }
        }
        self.fields.content.replace(content);
        Ok(self)
    }
pub fn content ( mut self , content : Option < String > ) -> Result < Self , UpdateWebhookMessageError > { if let Some ( content_ref ) = content . as_ref ( ) { if ! validate :: content_limit ( content_ref ) { return Err ( UpdateWebhookMessageError :: ContentInvalid { content : content . expect ( " " ) , } ) ; } } self . fields . content . replace ( content ) ; Ok ( self ) }
Set the content of the message.
Set the content of the message .
mut self
content
Option<String>
errors
Returns [`UpdateWebhookMessageError::ContentInvalid`] if the content
length is too long.
Returns [ ` UpdateWebhookMessageError :: ContentInvalid ` ] if the content length is too long .