message.team missing when a file is uploaded with the message.
x in one of the [ ])x in each of the [ ])Filling out the following details about bugs will help us solve your issue sooner.
package version: 1.8.0
node version: 12.16.1
OS version(s): Fedora
const {App} = require("@slack/bolt");
const app = new App({...});
app.message(..., ({message}) => {
console.log(message);
})
That message.team is present regardless if there's an attachment or not.
message.team is present and correct.message.team is missing.app.message(..., ({message, body}) => {
message.team = body.team_id;
console.log(message);
})
@seblaz Hello, thank you for taking the time to report this. I've verified the issue happens on my end too. This is not an issue related to the Bolt framework but an API response consistency issue in the Events API. I will report this issue to the team concerned.
I've shared this with the server-side teams and they've recognized it. Thank you again for reporting this.
Awesome, thanks!
As I mentioned above, we've already shared the feedback with the server-side engineering team. As we are unable to track the progress in this issue tracker, please let us close this issue. If you have further feedback on this, please contact our customer support team from either /feedback or https://my.slack.com/help/requests .
Most helpful comment
I've shared this with the server-side teams and they've recognized it. Thank you again for reporting this.