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 might come back to $data? #18

Closed
kpaxman opened this issue Jan 20, 2017 · 3 comments
Closed

What might come back to $data? #18

kpaxman opened this issue Jan 20, 2017 · 3 comments

Comments

@kpaxman
Copy link

kpaxman commented Jan 20, 2017

Is there documentation anywhere about what possible information might come back as $data?

@jclg
Copy link
Owner

jclg commented Jan 23, 2017

Yes, you can find the documentation here https://api.slack.com/rtm

@kpaxman
Copy link
Author

kpaxman commented Jan 27, 2017

I think I've figured it out.

So I should be looking at the message event - https://api.slack.com/events/message - for what would be returned as $data when a message is posted in the channel.

The keys will vary depending on the message subtype. For example, if you want to know what messages from bots look like, you need to look at the bot_message subtype (https://api.slack.com/events/message/bot_message).

Have I interpreted this correctly?

@jclg
Copy link
Owner

jclg commented Jan 30, 2017

Yes, you are correct.

@kpaxman kpaxman closed this as completed Jan 30, 2017
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