Skip to main content

plain_text

Function plain_text 

Source
pub fn plain_text(component: &Value) -> String
Expand description

Flatten a chat component (a string, an object with text/translate/extra, or an array) to plain text. Nesting beyond 32 levels is cut off rather than followed.