What do you mean? There is already a "speak as moderator" function in Lemmy.
Where?
Because I'm a mod, and whenever I comment within the community, it always just shows my my mod status (green, because I use Summit for Lemmy)
Oh ok, I now get what you mean.
Because of how federation works, that (or those, depending on what client you use,) badges or indicators can't be completely hidden.
Lemmy devs could I guess hide it in the API, but it would be as hidden as votes are right now (e.g. if someone really wanted to, they could spin up a temporary instance to get that info). I mean, look at what https://lemvotes.org/ does. And in this case, you don't even need an instance, you can literally just use browser.pub on your browser right now to get the moderators activitypub collection: https://browser.pub/https%3A%2F%2Flemmy.world%2Fc%2Fasklemmy%2Fmoderators
This isnt really a matter of the API. Its up to developers of apps or frontends to show a badge for moderators on each comment, and this could also easily be hidden. This has come up before, but it seems no one really cares enough to push such a change through.
Lemmy Support
Support / questions about Lemmy.