-
Notifications
You must be signed in to change notification settings - Fork 67
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
Remove ListResponseItemMessage::message #71
base: master
Are you sure you want to change the base?
Conversation
The [reaction_added] and [reaction_removed] events don't have this as a field, which was causing the deserialization to fail, preventing upstream libraries from handling reactions. [reaction_added]: https://api.slack.com/events/reaction_added [reaction_removed]: https://api.slack.com/events/reaction_removed
The code you've edited is generated from the schema. It's really round about but the proper change is to edit the schema, updated the the submodule in this repo, generate the code and pr |
Ah okay - I've opened a PR (slack-rs/slack-api-schemas#15) in the schema repo, although it looks like one of my fixes duplicates an existing PR (slack-rs/slack-api-schemas#8). However, even with this schema update, the line |
I'm trying to confirm this, which method are you trying to call that is failing? |
i think the issue is related to this comment in the docs which imply the event version of the item does not contain as much info. So it looks like message is optional
looking further it's the reuse of the list items as the rtm items when they're really different types |
Yeah, I think making To reproduce the issue, I wrote an example in my fork of If you check this out and run the reaction example, note that slack reactions are logged. Then if you revert the changes to Cargo.toml so it uses the upstream Let me know if you have any trouble with this. |
Ah yes I did get a repro in the end. There are some other events also such as pin added that suffer from the same problem. Just trying to make sure they're all caught and will get it fixed. |
The reaction_added and reaction_removed events don't have
message
as a field, which was causing the deserialization to fail,preventing upstream libraries from handling reactions.
fixes slack-rs/slack-rs#111