Adding new distinguish comment.

This commit is contained in:
Dessalines 2023-05-23 16:43:17 -04:00
parent 6801b2ae24
commit 412f9936e4

View file

@ -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<DistinguishComment, CommentResponse>(
HttpType.Post,
"/comment/distinguish",
form
);
}
/**
* Get / fetch comments.
*