Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What would be proper approach to add information to an event? #95

Closed
davidsneighbour opened this issue Oct 25, 2020 · 2 comments
Closed

Comments

@davidsneighbour
Copy link

How do I add individual information to an event? I recently rewrote my v2 implementation to v3 and can't seem to wrap my head around this. I have for instance a "user.logout" event that wants to send a Slack message about the specific user logging out. How do I add something on dispatch() that is handed over to the listener callback?

@davidsneighbour
Copy link
Author

Forget that ;) I can use the object on the dispatch function obviously.

@frankdejonge
Copy link
Member

Hi @davidsneighbour,

I was just typing an elaborate response, but I'm glad you've figured it out! I'll add some more docs on general event creation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants