Hello,
I'm new to moodle development and I'm trying to make an integration with discord.
The idea is users login using their discord account and after they complete a course/activity moodle automatically makes a call to a discord webhook where to write something in a room that a bot picks up and adds the user to the room that corresponds to the course.
I was able to use OAuth2 with some custom code (not sure if I should be changing the code for this or if there is a better way) to add the user to moodle and save some info I get from discord. But now I don't know how to make the request when a user completes a course/activity. I was thinking of using the plugin WebHooks (https://moodle.org/plugins/local_webhooks/versions). Is this the best way to go about this?