pub fn limit(mut self, limit: u64) -> Result<Self, GetGuildMembersError> {
        if !validate::get_guild_members_limit(limit) {
            return Err(GetGuildMembersError::LimitInvalid { limit });
        }

        self.fields.limit.replace(limit);

        Ok(self)
    }
/// Sets the number of members to retrieve per request.
///
/// The limit must be greater than 0 and less than 1000.
///
/// # Errors
///
/// Returns [`GetGuildMembersError::LimitInvalid`] if the limit is 0 or
/// greater than 1000.
Sets the number of members to retrieve per request.
The limit must be greater than 0 and less than 1000.
Sets the number of members to retrieve per request . The limit must be greater than 0 and less than 1000 .
pub fn limit(mut self, limit: u64) -> Result<Self, GetGuildMembersError> {
        if !validate::get_guild_members_limit(limit) {
            return Err(GetGuildMembersError::LimitInvalid { limit });
        }
        self.fields.limit.replace(limit);
        Ok(self)
    }
pub fn limit ( mut self , limit : u64 ) -> Result < Self , GetGuildMembersError > { if ! validate :: get_guild_members_limit ( limit ) { return Err ( GetGuildMembersError :: LimitInvalid { limit } ) ; } self . fields . limit . replace ( limit ) ; Ok ( self ) }
Sets the number of members to retrieve per request.
Sets the number of members to retrieve per request .
mut self
limit
u64
errors
Returns [`GetGuildMembersError::LimitInvalid`] if the limit is 0 or
greater than 1000.
Returns [ ` GetGuildMembersError :: LimitInvalid ` ] if the limit is 0 or greater than 1000 .