Skip to main content

check_message_components

Function check_message_components 

Source
pub fn check_message_components(
    components: &[Component],
    v2: bool,
) -> Result<(), BodyError>
Expand description

A message’s components: at most five action rows without IS_COMPONENTS_V2, the V2 layout kinds with it; at most 40 in all, unique ids and custom_ids.

§Errors

BAD_REQUEST naming the field, or PAYLOAD_TOO_LARGE for a count or text over its limit.