diff --git a/src/http.ts b/src/http.ts index 1c06d10..64b4ec7 100644 --- a/src/http.ts +++ b/src/http.ts @@ -297,7 +297,7 @@ export class LemmyHttp { * * `HTTP.GET /user/list_media` */ - listMedia(form: ListMedia) { + listMedia(form: ListMedia = {}) { return this.#wrapper( HttpType.Get, "/user/list_media", @@ -310,7 +310,7 @@ export class LemmyHttp { * * `HTTP.GET /admin/list_all_media` */ - listAllMedia(form: ListMedia) { + listAllMedia(form: ListMedia = {}) { return this.#wrapper( HttpType.Get, "/admin/list_all_media",