Where moderator rights set

Hi,
Can somebody guide where moderator is set for the conference, I am working in source code.

Thanks

The backend, Prosody grants the moderator rights to a user.

Right but menus updates as per user rights so I guess there is some delegate which handle the response of user type from server to update the menus. I have a scenario where I wanted a same functionality can you please guide me where we can catch the response at client side.

Thanks

JitsiConferenceEvents.USER_ROLE_CHANGED that’s the event.