From 412f9936e4511d81f8c9f3b92a83afb77592227f Mon Sep 17 00:00:00 2001 From: Dessalines Date: Tue, 23 May 2023 16:43:17 -0400 Subject: [PATCH] Adding new distinguish comment. --- src/http.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/http.ts b/src/http.ts index ef1c917..c79d569 100644 --- a/src/http.ts +++ b/src/http.ts @@ -36,6 +36,7 @@ import { DeleteCommunity } from "./types/DeleteCommunity"; import { DeleteCustomEmoji } from "./types/DeleteCustomEmoji"; import { DeletePost } from "./types/DeletePost"; import { DeletePrivateMessage } from "./types/DeletePrivateMessage"; +import { DistinguishComment } from "./types/DistinguishComment"; import { EditComment } from "./types/EditComment"; import { EditCommunity } from "./types/EditCommunity"; import { EditCustomEmoji } from "./types/EditCustomEmoji"; @@ -655,6 +656,19 @@ export class LemmyHttp { ); } + /** + * Distinguishes a comment (speak as moderator) + * + * `HTTP.POST /comment/distinguish` + */ + distinguishComment(form: DistinguishComment) { + return this.wrapper( + HttpType.Post, + "/comment/distinguish", + form + ); + } + /** * Get / fetch comments. *