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

team_ids is not available in the event payload for team_access_revoked #1380

Closed
4 of 10 tasks
aasiddiq opened this issue Mar 22, 2022 · 1 comment · Fixed by #1381
Closed
4 of 10 tasks

team_ids is not available in the event payload for team_access_revoked #1380

aasiddiq opened this issue Mar 22, 2022 · 1 comment · Fixed by #1381
Assignees
Labels
bug M-T: confirmed bug report. Issues are confirmed when the reproduction steps are documented enhancement M-T: A feature request for new functionality TypeScript-specific
Milestone

Comments

@aasiddiq
Copy link

aasiddiq commented Mar 22, 2022

Description

It is mentioned in the docs that the event team_access_revoked should have a property team_ids available under event but when using the bolt-sdk I get the error

Property 'team_ids' does not exist on type 'BasicSlackEvent<"team_access_revoked">'

I am listening to the event as below

  app.event(
    'team_access_revoked',
    async ({ context, event }) => {
      await Promise.allSettled(event.team_ids.map(async teamId => {
        // Do something with the teamId
      }));
    },
  );

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

  • bug
  • enhancement (feature request)
  • question
  • documentation related
  • example code related
  • testing related
  • discussion

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

  • I've read and understood the Contributing guidelines and have done my best effort to follow them.
  • I've read and agree to the Code of Conduct.
  • I've searched for any related issues and avoided creating a duplicate issue.

Bug Report

Filling out the following details about bugs will help us solve your issue sooner.

Reproducible in:

package version: 3.10

node version:

OS version(s):

Steps to reproduce:

Expected result:

The type should be available for team_access_revoked

Actual result:

What actually happened

Attachments:

Logs, screenshots, screencast, sample project, funny gif, etc.

@seratch seratch self-assigned this Mar 22, 2022
@seratch seratch added bug M-T: confirmed bug report. Issues are confirmed when the reproduction steps are documented enhancement M-T: A feature request for new functionality TypeScript-specific labels Mar 22, 2022
@seratch seratch added this to the 3.11.0 milestone Mar 22, 2022
seratch added a commit to seratch/bolt-js that referenced this issue Mar 22, 2022
@seratch
Copy link
Member

seratch commented Mar 22, 2022

Hi @aasiddiq, thanks for reporting this issue. The issue will be released in the next release. Until then, please go with a workaround to cast the value to any inside your listener function.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug M-T: confirmed bug report. Issues are confirmed when the reproduction steps are documented enhancement M-T: A feature request for new functionality TypeScript-specific
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants