mirror of
https://github.com/LemmyNet/lemmy-js-client.git
synced 2024-11-01 01:59:55 +00:00
Add list custom emojis (#360)
This commit is contained in:
parent
8609733623
commit
5f4385a55e
1 changed files with 15 additions and 0 deletions
15
src/http.ts
15
src/http.ts
|
@ -151,6 +151,8 @@ import { UpdateTagline } from "./types/UpdateTagline";
|
|||
import { DeleteTagline } from "./types/DeleteTagline";
|
||||
import { ListTaglines } from "./types/ListTaglines";
|
||||
import { ListTaglinesResponse } from "./types/ListTaglinesResponse";
|
||||
import { ListCustomEmojis } from "./types/ListCustomEmojis";
|
||||
import { ListCustomEmojisResponse } from "./types/ListCustomEmojisResponse";
|
||||
|
||||
enum HttpType {
|
||||
Get = "GET",
|
||||
|
@ -1445,6 +1447,19 @@ export class LemmyHttp {
|
|||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* List custom emojis
|
||||
*
|
||||
* `HTTP.GET /custom_emoji/list`
|
||||
*/
|
||||
listCustomEmojis(form: ListCustomEmojis) {
|
||||
return this.#wrapper<ListCustomEmojis, ListCustomEmojisResponse>(
|
||||
HttpType.Get,
|
||||
"/custom_emoji/list",
|
||||
form,
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a new tagline
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue