powered by
Normalizes the webhook changes field (which may be NULL, vector, or nested list) into a single comma-separated string of unique values.
changes
NULL
whapi_scalarize_change(x)
A character scalar (comma-separated) or NA_character_ if empty.
NA_character_
A character vector, list, or NULL from Whapi payload.
whapi_scalarize_change(c("text","text","reactions")) # "text,reactions" whapi_scalarize_change(NULL) # NA
Run the code above in your browser using DataLab