component_v2

Function component_v2 

Source
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

For errors refer to the errors of the following functions: