Merge pull request #123 from LemmyNet/add_distinguish_comment

This commit is contained in:
SleeplessOne1917 2023-05-23 21:37:25 +00:00 committed by GitHub
commit 1e9c936e48
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -36,6 +36,7 @@ import { DeleteCommunity } from "./types/DeleteCommunity";
import { DeleteCustomEmoji } from "./types/DeleteCustomEmoji"; import { DeleteCustomEmoji } from "./types/DeleteCustomEmoji";
import { DeletePost } from "./types/DeletePost"; import { DeletePost } from "./types/DeletePost";
import { DeletePrivateMessage } from "./types/DeletePrivateMessage"; import { DeletePrivateMessage } from "./types/DeletePrivateMessage";
import { DistinguishComment } from "./types/DistinguishComment";
import { EditComment } from "./types/EditComment"; import { EditComment } from "./types/EditComment";
import { EditCommunity } from "./types/EditCommunity"; import { EditCommunity } from "./types/EditCommunity";
import { EditCustomEmoji } from "./types/EditCustomEmoji"; 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. * Get / fetch comments.
* *