F
Filament4mo ago
uendel

How do I combine two actions into one?

I have two actions, one creates a user the other one invites a user, I want to combine them into a single one, so when a user gets created, they get invited right away too. Is it possible? I know I about the after hook but I don't know how to execute an action from there. One important thing to note is that both actions are from plugins so it wouldn't be nice to extract the code from the packages.
1 Reply
uendel
uendel4mo ago
I was able to handle this by extracting the code from the invite plugin and inserting it into an observer, as suggested on this other post (https://discord.com/channels/883083792112300104/1252047138456866827/1252047138456866827) But I think this is still relevant if the action is too complex.
Want results from more Discord servers?
Add your server