Function command::object::check_message_components
zaun_community_protocol::command::object::check_message_components · Function
pub fn check_message_components(components: &[Component], v2: bool) -> Result<(), BodyError>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
Section titled “Errors”BAD_REQUEST naming the field, or PAYLOAD_TOO_LARGE for a count or text over its limit.