Events nested in another Event interface don’t fire the parent Event. Just themselves. Listen to both, have them call one method that shares code and accepts a boolean or whatever depending on its type.
Thanks for you help. So the first method given above should work and fetch the messages ? But as I said, nothing happens as if the events were not fired.
I wrote these methods in the main plugin’s class to be sure I’m not doing a mistake when I register these listeners.
It seems really basic and simple to use, but I don’t understand why it doesn’t work…
They may not be implemented yet. I can’t find it but there was a post on GitHub listing all events and whether they have been implemented yet or not. A lot of things have changed since then so I don’t know if it’s up to date, but I know it exists somewhere.