this post was submitted on 25 Jul 2023
2 points (75.0% liked)

Lemmy App Development

705 readers
12 users here now

A place for Lemmy builders to chat about building apps, clients, tools and bots for the Lemmy platform.

On-Topic:

Off-Topic:

founded 1 year ago
MODERATORS
 

Is .moderators supposed to be on GetCommunity() result? I can't seem to find it in lemmy_server api_tests context. All I'm getting is languages and community_view

EDIT: Wait, so there is a "CommunityResponse" and a "GetCommunityResponse", object? What call do I use to Get a GetCommunityResponse object?

https://github.com/LemmyNet/lemmy-js-client/blob/2aa12c04a312ae4ae235f6d97c86a61f58c67494/src/types/GetCommunityResponse.ts#L7

top 1 comments
sorted by: hot top controversial new old
[–] nmtake@lemm.ee 1 points 1 year ago

I'm not sure what "lemmy_server api_tests context" does mean, but

curl 'https://<instance>/api/v3/community?name=lemmydev' | jq .moderators

seems to work for me.