pub fn action_row(
action_row: &ActionRow,
is_v2: bool,
) -> Result<(), ComponentValidationError>Expand description
Ensure that an action row is correct.
ยงErrors
Returns an error of type ActionRowComponentCount if the action row has
too many components in it.
Returns an error of type DisallowedChildren if the action row contains V2 components
that are disallowed in action rows and is_v2 is true.
Returns an error of type DisallowedV2Components if the action row contains V2 components
and is_v2 is false.
Returns an error of type InvalidChildComponent if the provided nested
component is an [ActionRow] or a Label. Action rows cannot contain other top-level
components.
Refer to button for potential errors when validating a button in the
action row.
Refer to select_menu for potential errors when validating a select menu
in the action row.
Refer to text_input for potential errors when validating a text input in
the action row.