Question 1: How would I check if a user is in a Moderator group?
I understand that the below exists:
\IPS\Member::loggedIn()->isAdmin()
Is there an equivalent for Moderator? What is it? - I understand I could just check all Group IDs that I know are Moderators but that means hardcoding and it isn't very elegant, I put an example below of that:
{{if \IPS\Member::loggedIn()->inGroup( array( 28, 15, 6 ) )}}
Groups 28, 15 and 6 can view this. (All of which are Moderator groups)
{{endif}}
But... I don't really want to do this. I would much rather something like an "isMod" check that would update itself, rather than needing me to put IDs every time a moderator group is added, or removed.
Question 2: How can I check all of the things available for me to use for an object in IPS such as \IPS\Member::loggedIn()? What documentation exists to show me all the methods, etc. if any?
Thank you!