Function twilight_validate::channel::is_thread
source · pub const fn is_thread(kind: ChannelType) -> Result<(), ChannelValidationError>
Expand description
Ensure a channel is a thread.
§Errors
Returns an error of type ChannelValidationErrorType::TypeInvalid
if the
channel is not a thread.