Skip to content

feat: Expose a subtype message pattern filter for message handlers #796

@SpencerKaiser

Description

@SpencerKaiser

Description

Unable to access thread_ts in message_replied message event payloads.

Bug Report

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

Reproducible in:

package version: ^3.2.0

node version: ^14

Expected result:

thread_ts will be available for messages

Actual result:

Compiler error

Code

  bolt.message(subtype('message_replied'), ({ message }) => {
    console.log(message.thread_ts);
  })

Property 'thread_ts' does not exist on type 'MessageEvent'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    TypeScript-specificdiscussionM-T: An issue where more input is needed to reach a decisionenhancementM-T: A feature request for new functionalitysemver:minor

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions