updateCommentOrReply method
Update a single comment.
The OAuth user must match the author of the comment in order to update it. If not, a 401 HTTP status is returned.
id
- A specific comment ID
🔒 OAuth Required 😁 Emojis
Implementation
Future<CommentResponse> updateCommentOrReply(String id,
{required String comment, required bool spoiler}) async {
final body = {"comment": comment, "spoiler": spoiler};
return await _manager._authenticatedPut<CommentResponse>("comments/$id",
body: jsonEncode(body));
}