I’m fiddling around with a test installation of phpVMS 7 and already really like it.
There is one thing I didn’t find information about, no idea if this even is possible to achieve in a simple way.
It would be nice to have all active pilots from phpVMS in a group/role on our discord server. The reason: I’d like to restrict access to the ACARS reporting messages to active pilots only without having to edit that group/role all the time.
Did I miss something really obvious (which I absolutely consider being possible)?
Thanks in advance and thank you for sharing your phantastic work!
You did not miss something, there is no such feature in v7
As of date, you can “only” send messages to your discord server via webhooks. The feature you want to have needs much more than that (like direct api access, user validation, server management etc)
Read the database and use a bot on your discord server could track this information to apply commands to change the roles of your users.
Question for : “Can the PhpVMS API retrieve information from a user? Or obtain a XML-like (or Json) of users ?”
Nice idea (custom bot at discord), even though v7’s current api endpoints do not provide a “roster” or “users” output, one can always have it with a custom module/code. As an example you can check below links, they all work with api endpoints (json)