twilight_validate::message

Function content

Source
pub fn content(value: impl AsRef<str>) -> Result<(), MessageValidationError>
Expand description

Ensure a message’s content is correct.

§Errors

Returns an error of type ContentInvalid if the message’s content is invalid.