Function twilight_validate::channel::topic

source ·
pub fn topic(value: impl AsRef<str>) -> Result<(), ChannelValidationError>
Expand description

Ensure a channel’s topic’s length is correct.

§Errors

Returns an error of type TopicInvalid if the topic is invalid.