slackapi / slack-api-specs

Open API specifications for platform products by Slack
MIT License
222 stars 64 forks source link

Event payload of the `message` event does not have a consistent schema (missing `team` property when message subtype is `file_share`) #62

Open sorsaffari opened 3 years ago

sorsaffari commented 3 years ago

Description

event payload of the message event is missing the team property when the message contains files (i.e. subtype is file_share).

What type of issue is this? (place an x in one of the [ ])

Requirements (place an x in each of the [ ])


Bug Report

Reproducible in:

Development environment: Mac OS 11.2, Node.js 14.15.4, Bolt.js 3.4.0

Steps to reproduce:

  1. perform the required configurations of a Slack app to listen to the message event
  2. post a message with text only (no files attached)
  3. observe the event payload
  4. post a message with a file attached
  5. observe the event payload

Expected result:

The event payload in steps 3 and 5 both include the team property

Actual result:

The event payload in step 3 includes the team property and the one in step 5 doesn't