twilight_validate::channel

Function 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.