MemberJoinedChannelEvent interface doesn't contain "enterprise" field #2139
Labels
area:typescript
issues that specifically impact using the package from typescript projects
bug
M-T: A confirmed bug report. Issues are confirmed when the reproduction steps are documented
pkg:types
applies to `@slack/types`
Milestone
I’ve been playing with the
member_joined_channel
event and have noticed that the corresponding interface for this event might be outdated. Examining the payload of the event I received, I found theenterprise
field, which contains the ID of the Slack organization, but it’s absent from the interface itself.node-slack-sdk/packages/types/src/events/member.ts
Line 4 in 6c29b1b
Is this intentional, or was it added at some point later by the web API, but the interface definition was not updated accordingly?
Packages:
Select all that apply:
@slack/web-api
@slack/rtm-api
@slack/webhooks
@slack/oauth
@slack/socket-mode
@slack/types
Reproducible in:
The Slack SDK version
Node.js runtime version
v20.9.0
OS info
ProductName: macOS
ProductVersion: 15.2
BuildVersion: 24C101
Darwin Kernel Version 24.2.0: Fri Dec 6 19:01:59 PST 2024; root:xnu-11215.61.5~2/RELEASE_ARM64_T6000
Steps to reproduce:
Result:
Expected result:
Add the
enterprise
field to the interface, so it will correspond to the actual payloads that we receive.Actual result:
Currently, the
enterprise
field is missing in the interface definition:node-slack-sdk/packages/types/src/events/member.ts
Line 4 in 6c29b1b
The text was updated successfully, but these errors were encountered: