pub fn component_v2(
component: &Component,
) -> Result<(), ComponentValidationError>Expand description
Ensure that a top-level request component is correct in V2.
Intended to ensure that a fully formed top-level component for requests is an action row.
Refer to other validators like button if you need to validate other
components.
ยงErrors
Returns an error of type InvalidRootComponent if the component cannot be a root
component in both modals and messages.
For other errors refer to the errors of the following functions: