Skip to main content

update_comment

Function update_comment 

Source
pub async fn update_comment<G: GraphQl>(
    api: &G,
    comment_id: &str,
    body: &str,
) -> Result<()>
Expand description

Rewrite an existing comment’s body in place.

A comment someone deleted surfaces as a GraphQL error, not success: false — use comment_not_found on the returned error to tell “recreate it” apart from “the API refused”.