Add list custom emojis (#360)

This commit is contained in:
matc-pub 2024-09-27 19:33:03 +02:00 committed by GitHub
parent 8609733623
commit 5f4385a55e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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
*