twilight_validate::request

Function scheduled_event_get_users

Source
pub const fn scheduled_event_get_users(
    limit: u16,
) -> Result<(), ValidationError>
Expand description

Ensure that a scheduled event’s get users limit amount is correct.

The length must be at least SCHEDULED_EVENT_GET_USERS_MIN and at most SCHEDULED_EVENT_GET_USERS_MAX. This is based on this documentation entry.

§Errors

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