twilight_validate::channel

Function thread_member_limit

source
pub const fn thread_member_limit(
    value: u32,
) -> Result<(), ChannelValidationError>
Expand description

Ensure the limit set for the number of thread members to return is correct.

The value must be at least CHANNEL_THREAD_GET_MEMBERS_LIMIT_MIN and at most CHANNEL_THREAD_GET_MEMBERS_LIMIT_MAX. This is based on this documentation entry.

ยงErrors

Returns an error of type ThreadMemberLimitInvalid if the limit is invalid.