mirror of
https://github.com/LemmyNet/lemmy-js-client.git
synced 2024-12-22 19:01:27 +00:00
Merge pull request #123 from LemmyNet/add_distinguish_comment
This commit is contained in:
commit
1e9c936e48
1 changed files with 14 additions and 0 deletions
14
src/http.ts
14
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<DistinguishComment, CommentResponse>(
|
||||
HttpType.Post,
|
||||
"/comment/distinguish",
|
||||
form
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get / fetch comments.
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue